mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-28 23:09:43 +03:00
de74250a3e
svn path=/trunk/netsurf/; revision=11802
21 lines
375 B
Bash
Executable File
21 lines
375 B
Bash
Executable File
#!/bin/sh
|
|
# call: compile-xib.sh [xib file] [language] [(optional output nib file)]
|
|
DIR=`dirname "$1"`
|
|
XIB=`basename -s .xib "$1"`
|
|
|
|
STRINGS_FILE="$DIR/$2.lproj/$XIB.xib.strings"
|
|
TRANSLATE=""
|
|
if [ -f $STRINGS_FILE ]
|
|
then
|
|
TRANSLATE="--strings-file $STRINGS_FILE"
|
|
fi
|
|
|
|
OUTPUT="$2.$XIB.nib"
|
|
|
|
if [ "x$3" != "x" ]
|
|
then
|
|
OUTPUT="$3"
|
|
fi
|
|
|
|
exec ibtool $TRANSLATE --compile $OUTPUT $1
|