-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
executable file
·47 lines (44 loc) · 2.55 KB
/
build.sh
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
#!/bin/bash
#
# mingus build script
# Builds mingus, registers at PyPi, generates documentation and uploads to Google code
VERSION=`cat ~/mingus/setup.py | grep version | awk -F = '{print $2}' | awk -F \" '{print $2}'`
echo "*******************************************************************************"
echo "***** mingus :: Automatic Build *****"
echo "***** Building mingus version $VERSION *****"
echo "*******************************************************************************"
echo
echo " Generate Documentation and Distribute to Google Code"
echo
echo "*******************************************************************************"
sudo rm -r ./build/ && sudo python setup.py install
~/mingus/doc/distribute_docs.sh
echo "*******************************************************************************"
echo
echo " Registering package mingus-$VERSION at PyPi"
echo
echo "*******************************************************************************"
python setup.py register
echo "*******************************************************************************"
echo
echo " Uploading source distribution and windows installer to PyPi"
echo
echo "*******************************************************************************"
sudo python setup.py sdist bdist_wininst upload
echo "*******************************************************************************"
echo
echo " Tagging release"
echo
echo "*******************************************************************************"
svn copy https://mingus.googlecode.com/svn/trunk/ https://mingus.googlecode.com/svn/tags/mingus-$VERSION -m "Tagging release" --username Rhijnauwen
echo "*******************************************************************************"
echo
echo " Uploading source and windows installer to Google Code"
echo
echo "*******************************************************************************"
echo "Uploading windows installer"
mv /home/bspaans/mingus/dist/mingus-$VERSION.linux-x86_64.exe /home/bspaans/mingus/dist/mingus-$VERSION.win32.exe
python googlecode_upload.py -p mingus -s "mingus-$VERSION - windows installer" -u rhijnauwen -l Featured,OpSys-Windows,Type-Installer /home/bspaans/mingus/dist/mingus-$VERSION.win32.exe
echo
echo "Uploading source distribution"
python googlecode_upload.py -p mingus -s "mingus-$VERSION - source tarball" -u rhijnauwen -l Featured,OpSys-All,Type-Source /home/bspaans/mingus/dist/mingus-$VERSION.tar.gz