Added commit message menu, other fixes
[ugit.git] / scripts / build-win32.sh
blob075602975d1a9f8c2270259c4f8decd3a08a05db
1 #!/bin/sh
2 PYUIC4=`which pyuic4`
3 PREFIX=installroot
4 UGITLIBS=$PREFIX/ugitlibs
5 cd `dirname $0`
6 cd ..
8 echo
9 echo "This is not for mass consumption."
10 echo "To create files for distribution, use:"
11 echo
12 echo "./configure --prefix=/usr --destdir=/my/destdir for that."
13 echo
15 if [ -z $PYUIC4 ] || [ ! -x $PYUIC4 ]; then
16 echo
17 echo "Could not find pyuic4."
18 echo "You need the pyqt4 developer tools in order to build ugit."
19 echo
22 mkdir -p $UGITLIBS
23 cp README $PREFIX/README.txt
24 cp bin/ugit.py $PREFIX
25 cp scripts/ugit-*.sh $PREFIX
26 cp ugitlibs/* $UGITLIBS
29 if [ -x $PYUIC4 ] && [ ! -z $PYUIC4 ]; then
30 for file in ui/*.ui; do
31 pyuic4 -x $file -o $UGITLIBS/`basename $file .ui`.py
32 done
35 echo "Done building."
36 echo "Run 'python $PREFIX/ugit.py' to launch ugit"