forked from mia/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
67af0c3661
commit
c6e55826f5
1 changed files with 15 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
PKG_DIR=${1}.app
|
||||
SKEL_DIR="packages/osx_bundle"
|
||||
AEGISUB_VERSION_DATA="${2}"
|
||||
AEGISUB_BIN="aegisub-${AEGISUB_VERSION_DATA}"
|
||||
SRCDIR=`pwd`
|
||||
HOME_DIR=`echo ~`
|
||||
|
||||
|
@ -82,7 +83,20 @@ done
|
|||
|
||||
echo
|
||||
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
|
||||
${CC} -o ${PKG_DIR}/Contents/MacOS/restart-helper scripts/osx-bundle-restart-helper.c
|
||||
|
||||
|
|
Loading…
Reference in a new issue