Fix wxstd.mo paths in osx-bundle.sh

Originally committed to SVN as r6782.
This commit is contained in:
Thomas Goyne 2012-05-14 13:22:09 +00:00
parent 827abff4c3
commit 3a951a2564
1 changed files with 15 additions and 12 deletions

View File

@ -16,7 +16,7 @@ fi
if ! test -d packages/osx_bundle; then if ! test -d packages/osx_bundle; then
echo echo
echo "Make sure you're in the toplevel source directory" echo "Make sure you're in the toplevel source directory"
exit 1; exit 1
fi fi
if test -d "${PKG_DIR}"; then if test -d "${PKG_DIR}"; then
@ -39,8 +39,8 @@ echo
echo "---- Copying Skel Files ----" echo "---- Copying Skel Files ----"
if ! test -f "tools/osx-bundle.sed"; then if ! test -f "tools/osx-bundle.sed"; then
echo echo
echo "NOT FOUND: tools/osx-bundle.sed"; echo "NOT FOUND: tools/osx-bundle.sed"
exit 1; exit 1
fi fi
find ${SKEL_DIR} -type f -not -regex ".*.svn.*" find ${SKEL_DIR} -type f -not -regex ".*.svn.*"
@ -82,12 +82,12 @@ mkdir -vp "${PKG_DIR}/Contents/Resources/en.lproj"
for i in `ls -1 po/*.mo|sed "s|po/\(.*\).mo|\1|"`; do for i in `ls -1 po/*.mo|sed "s|po/\(.*\).mo|\1|"`; do
if test -f "po/${i}.mo"; then if test -f "po/${i}.mo"; then
mkdir -p "${PKG_DIR}/Contents/Resources/${i}.lproj"; mkdir -p "${PKG_DIR}/Contents/Resources/${i}.lproj"
cp -v po/${i}.mo "${PKG_DIR}/Contents/Resources/${i}.lproj/aegisub.mo"; cp -v po/${i}.mo "${PKG_DIR}/Contents/Resources/${i}.lproj/aegisub.mo"
else else
echo "${i}.mo not found!" echo "${i}.mo not found!"
exit 1 exit 1
fi; fi
done done
@ -95,14 +95,17 @@ echo
echo "---- Copying WX locale files ----" echo "---- Copying WX locale files ----"
for i in `ls -1 po/*.mo|sed "s|po/\(.*\).mo|\1|"`; do for i in `ls -1 po/*.mo|sed "s|po/\(.*\).mo|\1|"`; do
# WX_MO="${WX_PREFIX}/share/locale/${i}/LC_MESSAGES/wxstd.mo" WX_MO="${WX_PREFIX}/share/locale/${i}/LC_MESSAGES/wxstd.mo"
WX_MO="${HOME_DIR}/wxstd/${i}.mo"
if ! test -f "${WX_MO}"; then
WX_MO="${HOME_DIR}/wxstd/${i}.mo"
fi
if test -f "${WX_MO}"; then if test -f "${WX_MO}"; then
cp -v "${WX_MO}" "${PKG_DIR}/Contents/Resources/${i}.lproj/"; cp -v "${WX_MO}" "${PKG_DIR}/Contents/Resources/${i}.lproj/"
else else
echo "WARNING: \"$i\" locale in aegisub but no WX catalog found!"; echo "WARNING: \"$i\" locale in aegisub but no WX catalog found!"
fi; fi
done done