Automatically generate the list of supported languages rather than hardcoding it

Originally committed to SVN as r6845.
This commit is contained in:
Thomas Goyne 2012-05-24 01:53:56 +00:00
parent a6036d98f1
commit 1206906c32
3 changed files with 8 additions and 12 deletions

View File

@ -52,18 +52,7 @@
<!-- Localizations supported -->
<key>CFBundleLocalizations</key>
<array>
<string>ca</string>
<string>da</string>
<string>de</string>
<string>en</string>
<string>es</string>
<string>fr_FR</string>
<string>hu</string>
<string>it</string>
<string>ko</string>
<string>ru</string>
<string>pt_BR</string>
<string>zh_TW</string>
@LOCALIZATIONS@
</array>
<!-- Supported document types -->

View File

@ -3,3 +3,7 @@ s/@PLIST_SVN_REVISION@/@SVN_REVISION@/g
s/@PLIST_BUILD_DATE@/@BUILD_DATE@/g
s/@PKG_DMG_STRING@/@DMG_STRING@/
s/@PKG_BUNDLE_STRING@/@BUNDLE_STRING@/
/ \+@LOCALIZATIONS@/ {
r languages
d
}

View File

@ -43,6 +43,8 @@ if ! test -f "tools/osx-bundle.sed"; then
exit 1
fi
find po -name *.po | sed 's/.*\/\(.*\)\.po/ <string>\1<\/string>/' > languages
find ${SKEL_DIR} -type f -not -regex ".*.svn.*"
cp ${SKEL_DIR}/Contents/Resources/*.icns "${PKG_DIR}/Contents/Resources"
cp ${SKEL_DIR}/Contents/Resources/etc/fonts/fonts.dtd "${PKG_DIR}/Contents/Resources/etc/fonts"
@ -50,6 +52,7 @@ cat ${SKEL_DIR}/Contents/Resources/etc/fonts/fonts.conf |sed -f tools/osx-bundle
cp ${SKEL_DIR}/Contents/Resources/etc/fonts/conf.d/*.conf "${PKG_DIR}/Contents/Resources/etc/fonts/conf.d"
cat ${SKEL_DIR}/Contents/Info.plist |sed -f tools/osx-bundle.sed > "${PKG_DIR}/Contents/Info.plist"
rm languages
echo
echo "---- Copying dictionaries ----"