1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00
GPXSee/pkg/mac/scripts/lproj.sh
2023-01-23 23:11:05 +01:00

22 lines
604 B
Bash
Executable File

#/bin/bash
for QM in ../../../lang/*.qm; do
LANG=`echo $QM | cut -d'_' -f2 | cut -d. -f1`
DIR=../lproj/$LANG.lproj
mkdir -p $DIR
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">
<plist version=\"1.0\">
<dict>
<key>LprojCompatibleVersion</key>
<string>123</string>
<key>LprojLocale</key>
<string>$LANG</string>
<key>LprojRevisionLevel</key>
<string>1</string>
<key>LprojVersion</key>
<string>123</string>
</dict>
</plist>" > $DIR/locversion.plist
done