blob: 264d87761c938a8e47da9714f638b24d65debc6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/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
|