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 tmp
=`mktemp -dt $repo-build-XXXXXX`
39 if [ "x$1" = "xbranch" ] ; then
41 rel
=RELEASE_
`echo -n $version|tr . _`
42 svn
cp -m "Tag release $version" svn
+ssh://mort
/home
/svn
/$repo/trunk svn
+ssh://mort
/home
/svn
/$repo/tags
/$rel
43 svn
export svn
+ssh://mort
/home
/svn
/$repo/tags
/$rel $repo-$version
44 elif [ "x$1" = "x" ] ; then
46 svn
export svn
+ssh://mort
/home
/svn
/$repo/trunk
$repo-$version
50 rel
=RELEASE_
`echo -n $version|tr . _`
51 svn
export svn
+ssh://mort
/home
/svn
/$repo/tags
/$rel $repo-$version
54 echo "Creating release $version from $rel"
58 # Build source package
59 .
/setup.py sdist
--formats=gztar
,bztar
,zip
63 if [ "x$1" = "xbranch" ] ; then
67 # Build Windows Python installer
68 wine c
:\\python25
\\python setup.py build
--skip-deps bdist_wininst
74 wine c
:\\python25
\\python setup.py build
--skip-deps py2exe
76 # py2exe does not catch these for some reason
77 cp ~
/.wine
/drive_c
/windows
/system32
/python25.dll dist
/
78 cp ~
/.wine
/drive_c
/Python25
/Lib
/site-packages
/wx-2.8
-msw-unicode/wx
/*.dll dist
/
81 signexe dist
/wammu.exe
"Wammu"
83 # Build Windows installer
84 wine c
:\\Program\ Files
\\Inno\ Setup\
5/\\ISCC.exe wammu.iss
85 mv Output
/$repo-$version-setup.exe ..
/
88 for bin
in $tmp/*-setup.exe
; do
89 signexe
$bin "Wammu installer"
93 echo "Release is in $tmp directory"