mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 15:29:45 +03:00
7acc13d863
svn path=/trunk/netsurf/; revision=12048
21 lines
386 B
Bash
Executable File
21 lines
386 B
Bash
Executable File
#!/bin/sh
|
|
# call: compile-xib.sh [xib file] [language] [(optional output nib file)]
|
|
DIR=`dirname "$2"`
|
|
XIB=`basename -s .xib "$2"`
|
|
|
|
STRINGS_FILE="$DIR/$3.lproj/$XIB.xib.strings"
|
|
TRANSLATE=""
|
|
if [ -f $STRINGS_FILE ]
|
|
then
|
|
TRANSLATE="--strings-file $STRINGS_FILE"
|
|
fi
|
|
|
|
OUTPUT="$3.$XIB.nib"
|
|
|
|
if [ "x$4" != "x" ]
|
|
then
|
|
OUTPUT="$4"
|
|
fi
|
|
|
|
exec $1/usr/bin/ibtool $TRANSLATE --compile $OUTPUT $2
|