aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-09-14 17:32:54 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-09-14 17:32:54 -0700
commit8a917cd9e420baa2febe3ff54777804949acff96 (patch)
tree063197761fdbcfdec83ff5bc90cbee8c31759995
parentb0a26d7193d99e7862f0fa1c280dae768a479700 (diff)
downloadpandoc-8a917cd9e420baa2febe3ff54777804949acff96.tar.gz
Further fixes to make_osx_package.sh.
-rwxr-xr-xmake_osx_package.sh15
1 files changed, 7 insertions, 8 deletions
diff --git a/make_osx_package.sh b/make_osx_package.sh
index b73e0e4dd..50e3ece89 100755
--- a/make_osx_package.sh
+++ b/make_osx_package.sh
@@ -1,7 +1,7 @@
#!/bin/sh -e
DIST=`pwd`/osx_package
-TMP=`pwd`/cabaltmp
+SANDBOX=`pwd`/.cabal-sandbox
VERSION=$(grep -e '^Version' pandoc.cabal | awk '{print $2}')
RESOURCES=$DIST/Resources
ROOT=$DIST/pandoc
@@ -22,18 +22,17 @@ cabal update
echo Building pandoc...
cabal sandbox init
-cabal install -v1 --prefix $TMP --flags="embed_data_files unicode_collation" --extra-lib-dirs=$ICU/lib --extra-include-dirs=$ICU/include pandoc-citeproc
-cabal install -v1 --prefix $TMP --flags="embed_data_files"
+cabal install -v1 --reinstall --flags="embed_data_files unicode_collation" --extra-lib-dirs=$ICU/lib --extra-include-dirs=$ICU/include pandoc-citeproc
+cabal install -v1 --reinstall --flags="embed_data_files"
mkdir -p $ROOT/usr/local/bin
mkdir -p $ROOT/usr/local/share/man/man1
mkdir -p $ROOT/usr/local/share/man/man5
for f in $EXES; do
- cp $TMP/bin/$f $ROOT/usr/local/bin/;
- cp $TMP/share/man/man1/$f.1 $ROOT/usr/local/share/man/man1/
+ cp $SANDBOX/bin/$f $ROOT/usr/local/bin/;
+ cp $SANDBOX/share/man/man1/$f.1 $ROOT/usr/local/share/man/man1/
done
-cp $TMP/share/man/man5/pandoc_markdown.5 $ROOT/usr/local/share/man/man5/
-# rm -rf $TMP
+cp $SANDBOX/share/man/man5/pandoc_markdown.5 $ROOT/usr/local/share/man/man5/
chown -R $ME:staff $DIST
# gzip $ROOT/usr/local/share/man/man?/*.*
@@ -41,7 +40,7 @@ chown -R $ME:staff $DIST
chmod +r $ROOT/usr/local/share/man/man?/*.*
echo Copying license...
-$TMP/bin/pandoc --data data -t rtf -s COPYING -o $RESOURCES/License.rtf
+$SANDBOX/bin/pandoc --data data -t rtf -s COPYING -o $RESOURCES/License.rtf
echo Signing pandoc executable...