aboutsummaryrefslogtreecommitdiffstats
path: root/python/update-binding.sh
blob: d07c4d6e0fc875c4dfd41364e8713b0b2e6ab2bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#! /bin/sh
#Manually update headers in pyempathy.override and pyempathygtk.override.

# Update the list of headers from Makefile.am
cd ../libempathy
python /usr/share/pygtk/2.0/codegen/h2def.py    \
    empathy-avatar.h            \
    empathy-time.h              \
    empathy-status-presets.h        \
    empathy-debug.h             \
    empathy-utils.h             \
    empathy-message.h           \
    empathy-chatroom-manager.h      \
    empathy-chatroom.h          \
    empathy-contact.h           \
    empathy-contact-groups.h        \
    empathy-contact-list.h          \
    empathy-contact-manager.h       \
    empathy-contact-factory.h       \
    empathy-tp-contact-factory.h        \
    empathy-tp-group.h          \
    empathy-tp-contact-list.h       \
    empathy-tp-chat.h           \
    empathy-tp-roomlist.h           \
    empathy-tp-call.h           \
    empathy-tp-tube.h           \
    empathy-idle.h              \
    empathy-log-manager.h           \
    empathy-irc-network-manager.h       \
    empathy-irc-network.h           \
    empathy-irc-server.h            \
    empathy-tube-handler.h          \
    empathy-dispatcher.h            \
 > ../python/pyempathy/pyempathy.defs

# Update the list of headers from Makefile.am
cd ../libempathy-gtk
python /usr/share/pygtk/2.0/codegen/h2def.py    \
    empathy-images.h            \
    empathy-account-chooser.h       \
    empathy-chat.h              \
    empathy-irc-network-dialog.h        \
    empathy-spell-dialog.h          \
    empathy-accounts-dialog.h       \
    empathy-chat-view.h         \
    empathy-log-window.h            \
    empathy-theme-boxes.h           \
    empathy-account-widget.h        \
    empathy-conf.h              \
    empathy-theme.h             \
    empathy-account-widget-irc.h        \
    empathy-account-widget-sip.h        \
    empathy-contact-dialogs.h       \
    empathy-new-message-dialog.h        \
    empathy-theme-irc.h         \
    empathy-avatar-chooser.h        \
    empathy-contact-list-store.h        \
    empathy-presence-chooser.h      \
    empathy-theme-manager.h         \
    empathy-avatar-image.h          \
    empathy-contact-list-view.h     \
    empathy-ui-utils.h          \
    empathy-cell-renderer-activatable.h \
    empathy-contact-widget.h        \
    empathy-profile-chooser.h       \
    empathy-cell-renderer-expander.h    \
    empathy-geometry.h          \
    empathy-smiley-manager.h        \
    empathy-cell-renderer-text.h        \
    empathy-spell.h             \
    empathy-contact-menu.h          \
 > ../python/pyempathygtk/pyempathygtk.defs

# Keep original version
cd ../python
cp pyempathy/pyempathy.defs /tmp
cp pyempathygtk/pyempathygtk.defs /tmp

# Apply patches
patch -p0 < pyempathy.patch
patch -p0 < pyempathygtk.patch

# Make modification then run that:
#diff -up /tmp/pyempathy.defs pyempathy/pyempathy.defs > pyempathy.patch
#diff -up /tmp/pyempathygtk.defs pyempathygtk/pyempathygtk.defs > pyempathygtk.patch