forked from mia/Aegisub
Use $DICT_DIR to find diciontary files for copying inside the bundle.
The default is ~/dict. Originally committed to SVN as r2741.
This commit is contained in:
parent
e7d5448885
commit
c4d4e6db98
2 changed files with 19 additions and 2 deletions
|
@ -28,10 +28,10 @@ SUBDIRS = \
|
||||||
desktop
|
desktop
|
||||||
|
|
||||||
osx-bundle:
|
osx-bundle:
|
||||||
@SHELL@ scripts/osx-bundle.sh @PACKAGE_TARNAME@-@PACKAGE_VERSION@@PACKAGE_DEBUG@ @AEGISUB_VERSION_DATA@
|
@SHELL@ scripts/osx-bundle.sh @PACKAGE_TARNAME@-@PACKAGE_VERSION@@PACKAGE_DEBUG@ @AEGISUB_VERSION_DATA@ DICT_DIR=$(DICT_DIR)
|
||||||
|
|
||||||
osx-dmg:
|
osx-dmg:
|
||||||
@SHELL@ scripts/osx-dmg.sh @PACKAGE_TARNAME@-@PACKAGE_VERSION@@PACKAGE_DEBUG@ "@PACKAGE_TARNAME@ @PACKAGE_VERSION@"
|
@SHELL@ scripts/osx-dmg.sh @PACKAGE_TARNAME@-@PACKAGE_VERSION@@PACKAGE_DEBUG@ "@PACKAGE_TARNAME@-@PACKAGE_VERSION@"
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
intltool-extract.in \
|
intltool-extract.in \
|
||||||
|
|
|
@ -4,6 +4,8 @@ PKG_DIR=${1}.app
|
||||||
SKEL_DIR="packages/osx_bundle"
|
SKEL_DIR="packages/osx_bundle"
|
||||||
AEGISUB_VERSION_DATA="${2}"
|
AEGISUB_VERSION_DATA="${2}"
|
||||||
SRCDIR=`pwd`
|
SRCDIR=`pwd`
|
||||||
|
HOME_DIR=`echo ~`
|
||||||
|
|
||||||
if test -z "${CC}"; then
|
if test -z "${CC}"; then
|
||||||
CC="cc"
|
CC="cc"
|
||||||
fi
|
fi
|
||||||
|
@ -39,6 +41,21 @@ cat ${SKEL_DIR}/Contents/Resources/etc/fonts/fonts.conf |sed -f scripts/osx-bund
|
||||||
cp ${SKEL_DIR}/Contents/Resources/etc/fonts/conf.d/*.conf ${PKG_DIR}/Contents/Resources/etc/fonts/conf.d
|
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 scripts/osx-bundle.sed > ${PKG_DIR}/Contents/Info.plist
|
cat ${SKEL_DIR}/Contents/Info.plist |sed -f scripts/osx-bundle.sed > ${PKG_DIR}/Contents/Info.plist
|
||||||
|
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "---- Copying dictionaries ----"
|
||||||
|
if test -z ${DICT_DIR}; then
|
||||||
|
DICT_DIR="${HOME_DIR}/dict"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test -d "${DICT_DIR}"; then
|
||||||
|
cp -v ${DICT_DIR}/* ${PKG_DIR}/Contents/SharedSupport/dictionaries
|
||||||
|
else
|
||||||
|
echo "WARNING: Dictionaries not found, please set $$DICT_DIR to a directiory"
|
||||||
|
echo " where the *.aff and *.dic files can be found"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "---- Copying automation/ files ----"
|
echo "---- Copying automation/ files ----"
|
||||||
cd automation
|
cd automation
|
||||||
|
|
Loading…
Reference in a new issue