summaryrefslogtreecommitdiff
path: root/cocoa/compile-xib.sh
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-02-08 21:19:15 +0000
committerVincent Sanders <vince@kyllikki.org>2016-02-08 21:20:13 +0000
commita29969888ac028b198b717165a904c9410dbf0ed (patch)
treee1730a15173a55882c29a339b81ffda5c7863d14 /cocoa/compile-xib.sh
parent405965d871d00c2fe679bb066290afa11e23b95b (diff)
downloadnetsurf-a29969888ac028b198b717165a904c9410dbf0ed.tar.gz
netsurf-a29969888ac028b198b717165a904c9410dbf0ed.tar.bz2
Update compilation to cope with modern SDK locations
Diffstat (limited to 'cocoa/compile-xib.sh')
-rwxr-xr-xcocoa/compile-xib.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/cocoa/compile-xib.sh b/cocoa/compile-xib.sh
index 37388c797..576f9bfd0 100755
--- a/cocoa/compile-xib.sh
+++ b/cocoa/compile-xib.sh
@@ -1,20 +1,20 @@
#!/bin/sh
# call: compile-xib.sh [xib file] [language] [(optional output nib file)]
-DIR=`dirname "$2"`
-XIB=`basename -s .xib "$2"`
+DIR=`dirname "$1"`
+XIB=`basename -s .xib "$1"`
-STRINGS_FILE="$DIR/$3.lproj/$XIB.xib.strings"
+STRINGS_FILE="$DIR/$2.lproj/$XIB.xib.strings"
TRANSLATE=""
if [ -f $STRINGS_FILE ]
then
TRANSLATE="--strings-file $STRINGS_FILE"
fi
-OUTPUT="$3.$XIB.nib"
+OUTPUT="$2.$XIB.nib"
-if [ "x$4" != "x" ]
+if [ "x$3" != "x" ]
then
- OUTPUT="$4"
+ OUTPUT="$3"
fi
-exec $1/usr/bin/ibtool $TRANSLATE --compile $OUTPUT $2
+exec /usr/bin/ibtool $TRANSLATE --compile $OUTPUT $1