2 # vim: expandtab sw=4 ts=4 sts=4:
4 # Usage: make-release [branch]
10 version
=`python -c 'import Wammu; print Wammu.__version__' | tr -d '\n'`
15 if [ ! -f ~
/.id
/codesigning.spc
] ; then
16 echo 'Skipping signing, no certificates!'
19 if [ "x$NO_SIGN" != "x" ] ; then
20 echo 'Skipping signing, disabled!'
23 gk-get
--user=nijel
--object=codesign | signcode \
24 -spc ~
/.id
/codesigning.spc \
25 -v ~
/.id
/codesigning.pvk \
28 -t http
://timestamp.verisign.com
/scripts
/timstamp.dll \
29 -i http
://cihar.com
/ \
35 if [ "x$1" = "xbranch" ] ; then
39 if grep -q '^20[0-9][0-9]-??-?? - ' ChangeLog
; then
40 echo 'ChangeLog does not seem to be finalised, aborting!'
44 elif [ "x$1" = "x" ] ; then
52 tmp
=`mktemp -dt $repo-build-XXXXXX`
55 echo "Creating release $version from $checkout"
56 git clone
$srcdir $repo-$version
58 git checkout
$checkout
61 echo 'Creating source tarballs...'
64 # Build source package
65 .
/setup.py sdist
--formats=gztar
,bztar
,zip
68 # Build Windows Python installer
69 wine c
:\\python25
\\python setup.py bdist_wininst
75 wine c
:\\python25
\\python setup.py py2exe
77 # py2exe does not catch these for some reason
78 cp ~
/.wine
/drive_c
/windows
/system32
/python25.dll dist
/
79 cp ~
/.wine
/drive_c
/Python25
/Lib
/site-packages
/wx-2.8
-msw-unicode/wx
/*.dll dist
/
80 cp ~
/.wine
/drive_c
/Python25
/Lib
/site-packages
/gammu
/*.dll dist
/
83 signexe dist
/wammu.exe
"Wammu"
85 # Build Windows installer
86 wine c
:\\Program\ Files
\\Inno\ Setup\
5/\\ISCC.exe wammu.iss
87 mv Output
/$repo-$version-setup.exe ..
/
90 for bin
in $tmp/*-setup.exe
; do
91 signexe
$bin "Wammu installer"
95 echo "Release is in $tmp directory"
100 if [ $dotag -eq 1 ] ; then
102 git tag
-s -m "Tag release $version" "$version"
104 $tmp/$repo-$version/setup.py register