A few more i18n fixes
[ugit.git] / scripts / build-win32.sh
blob3da11dbb913b7312d3a36f2bc9318d706c21cfb7
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 $UGITLIBS
19 mkdir -p $ICONDIR
20 mkdir -p $QMDIR
22 cp README $PREFIX/README.txt
23 cp bin/* scripts/ugit-*.sh $BINDIR
24 cp ugitlibs/* $UGITLIBS
25 cp icons/* $ICONDIR
28 if [ -x $PYUIC4 ] && [ ! -z $PYUIC4 ]; then
29 for file in ui/*.ui; do
30 pyuic4 -x $file -o $UGITLIBS/`basename $file .ui`.py
31 done
34 for file in po/*.po; do
35 msgfmt --qt -o $QMDIR/`basename $file .po`.qm $file
36 done