Fixed win32 build script
[ugit.git] / scripts / build-win32.sh
blobc3c589e3f34a50bb49115dabfc573578783ceceb
1 #!/bin/sh
2 PYUIC4=`which pyuic4`
3 PREFIX=installroot
4 BINDIR=$PREFIX/bin
5 UGITLIBS=$PREFIX/ugitlibs
6 ICONDIR=$PREFIX/share/ugit/icons
7 QMDIR=$PREFIX/share/ugit/qm
8 cd `dirname $0`
9 cd ..
11 if [ -z $PYUIC4 ] || [ ! -x $PYUIC4 ]; then
12 echo
13 echo "Could not find pyuic4."
14 echo "You need the pyqt4 developer tools in order to build ugit."
15 echo
18 mkdir -p $BINDIR
19 mkdir -p $UGITLIBS
20 mkdir -p $ICONDIR
21 mkdir -p $QMDIR
23 cp README $PREFIX/README.txt
24 cp bin/* scripts/ugit-*.sh $BINDIR
25 cp ugitlibs/* $UGITLIBS
26 cp icons/* $ICONDIR
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 for file in po/*.po; do
36 msgfmt --qt -o $QMDIR/`basename $file .po`.qm $file
37 done