Fixed make_osx_package.sh.

This commit is contained in:
John MacFarlane 2013-09-02 10:41:52 -07:00
parent b4c449ed5d
commit e97b54b123

View file

@ -24,14 +24,17 @@ cabal-dev add-source /Users/jgm/src/pandoc-citeproc
echo Building pandoc... echo Building pandoc...
cabal-dev install hsb2hs cabal-dev install hsb2hs
cabal-dev install -v1 --prefix $ROOT/usr/local --libdir /usr/local/lib --datadir /usr/local/share --flags="embed_data_files unicode_collation" --extra-lib-dirs=$ICU/lib --extra-include-dirs=$ICU/include pandoc-citeproc
cabal-dev install -v1 --prefix $ROOT/usr/local --libdir /usr/local/lib --datadir /usr/local/share --flags="embed_data_files"
# remove library files cabal-dev install --reinstall -v1 --prefix $ROOT/tmp --flags="embed_data_files unicode_collation" --extra-lib-dirs=$ICU/lib --extra-include-dirs=$ICU/include pandoc-citeproc
rm -r $ROOT/usr/local/lib cabal-dev install -v1 --prefix $ROOT/tmp --flags="embed_data_files"
mkdir -p $ROOT/usr/local/share
cp -r $ROOT/tmp/bin $ROOT/usr/local/
cp -r $ROOT/tmp/share/man $ROOT/usr/local/share/
rm -rf $ROOT/tmp
chown -R $ME:staff $DIST chown -R $ME:staff $DIST
# gzip $ROOT/usr/local/share/man/man?/*.*
gzip $ROOT/usr/local/share/man/man?/*.*
# cabal gives man pages the wrong permissions # cabal gives man pages the wrong permissions
chmod +r $ROOT/usr/local/share/man/man?/*.* chmod +r $ROOT/usr/local/share/man/man?/*.*
@ -51,10 +54,11 @@ sudo $PACKAGEMAKER \
--id net.johnmacfarlane.pandoc \ --id net.johnmacfarlane.pandoc \
--resources $RESOURCES \ --resources $RESOURCES \
--version $VERSION \ --version $VERSION \
--no-relocate \
--scripts $SCRIPTS \ --scripts $SCRIPTS \
--out $BASE.pkg --out $BASE.pkg
# --no-relocate
echo Signing package... echo Signing package...
sudo codesign --force --sign "$CODESIGNID" $BASE.pkg sudo codesign --force --sign "$CODESIGNID" $BASE.pkg