Update win32 build script for documentation
[ugit.git] / scripts / build-win32.sh
blob751c6a9e84103782557f3e3fd9e8dea3b86c2885
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 DOCDIR=$PREFIX/share/doc/ugit
9 cd `dirname $0`
10 cd ..
12 if [ -z $PYUIC4 ] || [ ! -x $PYUIC4 ]; then
13 echo
14 echo "Could not find pyuic4."
15 echo "You need the pyqt4 developer tools in order to build ugit."
16 echo
19 mkdir -p $BINDIR
20 mkdir -p $UGITLIBS
21 mkdir -p $ICONDIR
22 mkdir -p $QMDIR
23 mkdir -p $DOCDIR
25 cp README $DOCDIR/README.txt
26 cp bin/* scripts/ugit-*.sh $BINDIR
27 cp ugitlibs/* $UGITLIBS
28 cp icons/* $ICONDIR
31 if [ -x $PYUIC4 ] && [ ! -z $PYUIC4 ]; then
32 for file in ui/*.ui; do
33 pyuic4 -x $file -o $UGITLIBS/`basename $file .ui`.py
34 done
37 for file in po/*.po; do
38 msgfmt --qt -o $QMDIR/`basename $file .po`.qm $file
39 done