~ubuntu-branches/ubuntu/natty/anki/natty

« back to all changes in this revision

Viewing changes to tools/build_ui.sh

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Bombe
  • Date: 2010-10-22 12:50:51 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20101022125051-hrscik3rhw9z31zh
Tags: 1.0.1-1
* Imported Upstream version 1.0.1 (Closes: #598167)
* Upstream version no longer contains string exceptions (Closes:
  #585262)
* Use getlocale(LC_MESSAGES) for default interface language instead of
  getdefaultlocale() (Closes: 576158)
* Switch to version 3.0 (quilt) package format
* Bump Standards-Version to 3.9.1, no changes necessary
* Remove some more code from libanki/anki/lang.py that is not needed
  with the fixed locale path patch
* Add Vcs-Git control fields pointing to the collab-maint repository
  on Alioth
* Remove *.anki exclusion on dh_compress, left over from time when
  example decks were included
* In anki launcher set sys.path[0] to /usr/share/anki rather than
  prepending it to sys.path
* debian/copyright: Copy list of contributors from about dialog

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
if [ xDarwin = x$(uname) ]
15
15
then
16
 
    pyuic=/Library/Frameworks/Python.framework/Versions/2.5/bin/pyuic4
17
 
    pyrcc=/Library/Frameworks/Python.framework/Versions/2.5/bin/pyrcc4
 
16
    if [ -e /Library/Frameworks/Python.framework/Versions/2.5/bin/pyuic4 ]
 
17
    then
 
18
        pyuic=/Library/Frameworks/Python.framework/Versions/2.5/bin/pyuic4
 
19
        pyrcc=/Library/Frameworks/Python.framework/Versions/2.5/bin/pyrcc4
 
20
    elif [ -e /opt/local/Library/Frameworks/Python.framework/Versions/2.5/bin/pyuic4 ]
 
21
    then
 
22
        pyuic=/opt/local/Library/Frameworks/Python.framework/Versions/2.5/bin/pyuic4
 
23
        pyrcc=/opt/local/Library/Frameworks/Python.framework/Versions/2.5/bin/pyrcc4
 
24
    elif [ -e /System/Library/Frameworks/Python.framework/Versions/2.6/bin/pyuic4 ]
 
25
    then
 
26
        pyuic=/System/Library/Frameworks/Python.framework/Versions/2.6/bin/pyuic4
 
27
        pyrcc=/System/Library/Frameworks/Python.framework/Versions/2.6/bin/pyrcc4
 
28
    elif [ -e /Library/Frameworks/Python.framework/Versions/2.6/bin/pyuic4 ]
 
29
    then
 
30
        pyuic=/Library/Frameworks/Python.framework/Versions/2.6/bin/pyuic4
 
31
        pyrcc=/Library/Frameworks/Python.framework/Versions/2.6/bin/pyrcc4
 
32
    elif [ -f /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/pyuic4 ]
 
33
    then
 
34
        pyuic=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/pyuic4
 
35
        pyrcc=/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/pyrcc4
 
36
    else
 
37
        echo 'Unable to find pyuic4. Try `port install py-pyqt4`?'
 
38
        exit
 
39
    fi
18
40
else
19
41
    pyuic=pyuic4
20
42
    pyrcc=pyrcc4
45
67
cat $temp >> $init
46
68
rm $temp
47
69
 
 
70
# use older integer format so qt4.4 still works
 
71
sed -i 's/setProperty("value", 14)/setProperty("value", QtCore.QVariant(14))/' ankiqt/forms/displayproperties.py
 
72
 
48
73
echo "Building resources.."
49
74
$pyrcc icons.qrc -o icons_rc.py