mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
Merge branch 'master' of https://github.com/bmabey/ankiqt
This commit is contained in:
commit
8485e6ec73
2 changed files with 26 additions and 21 deletions
|
@ -3,8 +3,8 @@ you need the binary pyuic4).
|
||||||
|
|
||||||
To use the development version:
|
To use the development version:
|
||||||
|
|
||||||
$ git clone git://ichi2.net/libanki
|
$ git clone https://github.com/dae/libanki.git
|
||||||
$ git clone git://ichi2.net/ankiqt
|
$ git clone https://github.com/dae/ankiqt.git
|
||||||
$ cd ankiqt
|
$ cd ankiqt
|
||||||
$ ./tools/build_ui.sh
|
$ ./tools/build_ui.sh
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,10 @@ fi
|
||||||
|
|
||||||
mkdir -p ankiqt/forms
|
mkdir -p ankiqt/forms
|
||||||
|
|
||||||
|
pyuic=`which pyuic4`
|
||||||
|
pyrcc=`which pyrcc4`
|
||||||
|
|
||||||
|
if [ $? != 0 ]; then
|
||||||
if [ xDarwin = x$(uname) ]
|
if [ xDarwin = x$(uname) ]
|
||||||
then
|
then
|
||||||
if [ -e /Library/Frameworks/Python.framework/Versions/2.5/bin/pyuic4 ]
|
if [ -e /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
|
pyuic=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/pyuic4
|
||||||
pyrcc=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/pyrcc4
|
pyrcc=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/pyrcc4
|
||||||
else
|
else
|
||||||
echo 'Unable to find pyuic4. Try `port install py-pyqt4`?'
|
echo 'Unable to find pyuic4. If you use macpors try `port install py-pyqt4`. If you use homebrew try `brew install pyqt`.'
|
||||||
exit
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
pyuic=pyuic4
|
echo "Unable to find pyuic4 on your path! Please install it and try this script again."
|
||||||
pyrcc=pyrcc4
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
init=ankiqt/forms/__init__.py
|
init=ankiqt/forms/__init__.py
|
||||||
|
|
Loading…
Reference in a new issue