aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-01-19 11:11:34 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-01-19 11:11:34 -0800
commit87b8e3a81e85a2e700d5f07f6df4129d4a5cd4f5 (patch)
treeec9c5a8752750d9d8f8a9085dbd2d7f1e3a907a5
parentd9c996d37a367a87f9d1d5fd785caf5d62bade10 (diff)
downloadpandoc-87b8e3a81e85a2e700d5f07f6df4129d4a5cd4f5.tar.gz
Improved make_osx_package.sh.
-rwxr-xr-xmake_osx_package.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/make_osx_package.sh b/make_osx_package.sh
index 34230e45e..c9577ebd8 100755
--- a/make_osx_package.sh
+++ b/make_osx_package.sh
@@ -15,8 +15,8 @@ mkdir -p $RESOURCES
echo Building pandoc...
cabal-dev install-deps
cabal-dev install --reinstall --force-reinstalls --flags="embed_data_files" citeproc-hs
-cabal-dev install --disable-library-for-ghci highlighting-kate
-cabal-dev install --prefix=/usr/local --datasubdir=$BASE --docdir=/usr/local/doc/$BASE
+cabal-dev configure --prefix=/usr/local --datasubdir=$BASE --docdir=/usr/local/doc/$BASE
+cabal-dev build
cabal-dev copy --destdir=$ROOT
# remove library files
rm -r $ROOT/usr/local/lib
@@ -33,7 +33,7 @@ PACKAGEMAKER=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/P
echo Creating OSX package...
-$PACKAGEMAKER \
+sudo $PACKAGEMAKER \
--root $ROOT \
--id net.johnmacfarlane.pandoc \
--resources $RESOURCES \
@@ -44,9 +44,9 @@ $PACKAGEMAKER \
echo Creating disk image...
-hdiutil create "$BASE.dmg" \
+sudo hdiutil create "$BASE.dmg" \
-format UDZO -ov \
-volname "pandoc $VERSION" \
-srcfolder $BASE.pkg
-hdiutil internet-enable "$BASE.dmg"
+sudo hdiutil internet-enable "$BASE.dmg"