mirror of https://github.com/odrling/Aegisub
* Add a (small) hack for scripts/osx-bundle.sh to handle libtools weirdness.
* Update path to reflect new repo changes. Originally committed to SVN as r2765.
This commit is contained in:
parent
2cf7d9c80b
commit
01d522b344
|
@ -3,6 +3,7 @@
|
||||||
PKG_DIR=${1}.app
|
PKG_DIR=${1}.app
|
||||||
SKEL_DIR="packages/osx_bundle"
|
SKEL_DIR="packages/osx_bundle"
|
||||||
AEGISUB_VERSION_DATA="${2}"
|
AEGISUB_VERSION_DATA="${2}"
|
||||||
|
AEGISUB_BIN="aegisub-${AEGISUB_VERSION_DATA}"
|
||||||
SRCDIR=`pwd`
|
SRCDIR=`pwd`
|
||||||
HOME_DIR=`echo ~`
|
HOME_DIR=`echo ~`
|
||||||
|
|
||||||
|
@ -82,7 +83,20 @@ done
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "---- Binaries ----"
|
echo "---- Binaries ----"
|
||||||
cp -v aegisub/.libs/aegisub-${AEGISUB_VERSION_DATA} ${PKG_DIR}/Contents/MacOS/aegisub
|
|
||||||
|
# XXX: Fix me
|
||||||
|
# I'm not sure of the exact reason but libtool likes creating the binary in
|
||||||
|
# either '.' or '.libs', the file in the parent is just a script that loads
|
||||||
|
# the binary from .libs. On ocassion it'll stop using the script and just
|
||||||
|
# create the binary, this isn't the best way to check which one to copy but
|
||||||
|
# it's a good enough hack until then.
|
||||||
|
|
||||||
|
if test src/${AEGISUB_BIN} -nt src/.libs/${AEGISUB_BIN}; then
|
||||||
|
cp -v src/${AEGISUB_BIN} ${PKG_DIR}/Contents/MacOS/aegisub
|
||||||
|
else
|
||||||
|
cp -v src/.libs/${AEGISUB_BIN} ${PKG_DIR}/Contents/MacOS/aegisub
|
||||||
|
fi
|
||||||
|
|
||||||
echo cc -o ${PKG_DIR}/Contents/MacOS/restart-helper scripts/osx-bundle-restart-helper.c
|
echo cc -o ${PKG_DIR}/Contents/MacOS/restart-helper scripts/osx-bundle-restart-helper.c
|
||||||
${CC} -o ${PKG_DIR}/Contents/MacOS/restart-helper scripts/osx-bundle-restart-helper.c
|
${CC} -o ${PKG_DIR}/Contents/MacOS/restart-helper scripts/osx-bundle-restart-helper.c
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue