This commit is contained in:
Damien Elmes 2011-03-12 20:04:01 +09:00
commit 8485e6ec73
2 changed files with 26 additions and 21 deletions

View file

@ -3,8 +3,8 @@ you need the binary pyuic4).
To use the development version:
$ git clone git://ichi2.net/libanki
$ git clone git://ichi2.net/ankiqt
$ git clone https://github.com/dae/libanki.git
$ git clone https://github.com/dae/ankiqt.git
$ cd ankiqt
$ ./tools/build_ui.sh

View file

@ -11,8 +11,12 @@ fi
mkdir -p ankiqt/forms
if [ xDarwin = x$(uname) ]
then
pyuic=`which pyuic4`
pyrcc=`which pyrcc4`
if [ $? != 0 ]; then
if [ xDarwin = x$(uname) ]
then
if [ -e /Library/Frameworks/Python.framework/Versions/2.5/bin/pyuic4 ]
then
pyuic=/Library/Frameworks/Python.framework/Versions/2.5/bin/pyuic4
@ -34,12 +38,13 @@ then
pyuic=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/pyuic4
pyrcc=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/pyrcc4
else
echo 'Unable to find pyuic4. Try `port install py-pyqt4`?'
exit
echo 'Unable to find pyuic4. If you use macpors try `port install py-pyqt4`. If you use homebrew try `brew install pyqt`.'
exit 1
fi
else
echo "Unable to find pyuic4 on your path! Please install it and try this script again."
exit 1
fi
else
pyuic=pyuic4
pyrcc=pyrcc4
fi
init=ankiqt/forms/__init__.py