Aegisub/scripts/osx-bundle.sh
Amar Takhar 93002cf4a8 * s/SVN_VERSION/SVN_REVISION/ in configure.in
* Prefix PLIST_ to swappable variables in Plist.info
* Add scripts/osx-bundle.sed.in which swaps the variables in Info.plist
* Split AC_OUTPUT into AC_CONFIG_FILES for Makefiles/config scripts
  (osx-bundle.sed.in) and add AC_OUTPUT below.
* svn:ignore property on . and scripts/
* Fix bug in Info.plist (---> to --> for ending XML comment)

Originally committed to SVN as r2581.
2008-12-31 05:52:52 +00:00

37 lines
851 B
Bash
Executable file

#!/bin/sh
PKG_DIR=${1}.app
SKEL_DIR="packages/osx_bundle"
if ! test -d packages/osx_bundle; then
echo
echo "Make sure you're in the toplevel source directory"
exit 1;
fi
if test -d ${PKG_DIR}; then
echo "**** USING OLD ${PKG_DIR} ****"
fi
echo
echo "---- Directory Structure ----"
mkdir -v ${PKG_DIR}
mkdir -v ${PKG_DIR}/Contents
mkdir -v ${PKG_DIR}/Contents/MacOS
mkdir -v ${PKG_DIR}/Contents/Resources
echo
echo "---- Copying Skel Files ----"
cp -v ${SKEL_DIR}/Contents/Resources/* ${PKG_DIR}/Contents/Resources
cat ${SKEL_DIR}/Contents/Info.plist |sed -f scripts/osx-bundle.sed > ${PKG_DIR}/Contents/Info.plist
echo
echo "---- Binaries ----"
cp -v aegisub/.libs/aegisub ${PKG_DIR}/Contents/MacOS
echo
echo "---- Libraries ----"
python scripts/osx-fix-libs.py "${PKG_DIR}/Contents/MacOS/aegisub"
echo
echo "Done Creating ${PKG_DIR}"