Rev 2295 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#!/bin/shif [ -z "$1" -o -z "$2" ]; thenecho ""echo " Usage: updateSVN <src-root> <target-resources-dir>"echo ""exit 1fiOWD=`pwd`cd "$1"SVNREV=`sed -n 's/.*revision="\(.*\)".*/\1/p' .svn/entries|head -n 1`echo "Revision: $SVNREV"if [ -z "$SVNREV" ]; thenecho "Cannot determine SVN revision."exit 2fiif [ ! -e "$1/English.lproj/InfoPlist.strings" ]; thenecho "Cannot find $1/English.lproj/InfoPlist.strings"exit 2;fiif [ ! -e "$1/Info.plist" ]; thenecho "Cannot find Info.plist"exit 3;fised "s/%SVN%/$SVNREV/g" "$1/English.lproj/InfoPlist.strings" > "$2/English.lproj/InfoPlist.strings"# Info.plist is actually one level below resourcessed "s/%SVN%/$SVNREV/g" "$1/Info.plist" > "$2/../Info.plist"exit 0