3 GTK_ROOT
=/c
/programme
/pygtk
/gtk
5 # clean-up from last build
9 python setup-win32.py py2exe
11 # copy gtk resource files
12 cp -r ${GTK_ROOT}/{etc
,lib
,share
} dist
/
16 # remove unnecessary gtk stuff
17 rm -rf .
/lib
/gtk-2.0
/2.4.0
18 rm -rf .
/lib
/gtk-2.0
/2.10.0/immodules
19 rm -rf .
/lib
/gtk-2.0
/2.10.0/loaders
/*-{ani
,bmp
,gif
,pcx
,pnm
,ras
,tga
,tiff
,wbmp
}.dll
21 # remove locales, keep the ones we have translations for
23 mv .
/share
/locale
/{de
,fr
,sv
,it
,pt
,es
,nl,ru
,uk
} .
/loc_tmp
/
25 mv .
/loc_tmp
/* .
/share
/locale
/
28 # remove icons that are not needed
29 rm -rf .
/share
/icons
/hicolor
/scalable
30 rm -rf .
/share
/icons
/hicolor
/48x48
31 rm -rf .
/share
/icons
/hicolor
/24x24
32 rm -rf .
/share
/icons
/hicolor
/22x22
33 rm -rf .
/share
/icons
/hicolor
/8x8
35 # re-insert icons that _are_ needed indeed
36 mkdir
-p share
/icons
/hicolor
/scalable
/status
37 mkdir
-p share
/icons
/hicolor
/48x48
/apps
39 cp -v ${GTK_ROOT}/share
/icons
/hicolor
/scalable
/status
/appointment-soon.svg
share
/icons
/hicolor
/scalable
/status
/
40 cp -v ${GTK_ROOT}/share
/icons
/hicolor
/48x48
/apps
/palm-pilot-sync.png
share
/icons
/hicolor
/48x48
/apps
/
41 cp -v ${GTK_ROOT}/share
/icons
/hicolor
/48x48
/apps
/config-date.png
share
/icons
/hicolor
/48x48
/apps
/
44 #find -name '*.dll' -print0 | xargs -0 upx -9