aboutsummaryrefslogtreecommitdiff
path: root/deb/make_deb.sh
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-02-12 23:13:30 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-02-12 23:13:30 +0100
commitfb77b993db5555e61dbd7365d1e360f3e4d7219b (patch)
tree0998193984238ea6f62dbfa698e58116eda5cdf4 /deb/make_deb.sh
parentad2f80f91d7b5500f413e05c1b659a1e1575755b (diff)
downloadpandoc-fb77b993db5555e61dbd7365d1e360f3e4d7219b.tar.gz
deb/make_deb.sh fixes.
Diffstat (limited to 'deb/make_deb.sh')
-rwxr-xr-xdeb/make_deb.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/deb/make_deb.sh b/deb/make_deb.sh
index 572698ae6..a92c47784 100755
--- a/deb/make_deb.sh
+++ b/deb/make_deb.sh
@@ -15,28 +15,28 @@ DEST=$DIST/usr
ME=$(whoami)
COPYRIGHT=$DEST/share/doc/pandoc/copyright
-# We need this for hsb2hs:
PATH=$LOCAL/bin:$PATH
+mkdir -p $LOCAL/bin
mkdir -p $DEST/bin
mkdir -p $DEST/share/man/man1
mkdir -p $DEST/share/doc/pandoc
-stack install --install-ghc --stack-yaml stack.pkg.yaml --local-bin-path . hsb2hs
-stack install --install-ghc --stack-yaml stack.pkg.yaml --local-bin-path . pandoc pandoc-citeproc
+stack install --install-ghc --stack-yaml stack.pkg.yaml --local-bin-path $LOCAL/bin hsb2hs
+stack install --install-ghc --stack-yaml stack.pkg.yaml --local-bin-path $LOCAL/bin pandoc pandoc-citeproc
make man/pandoc.1
# get pandoc-citeproc man page:
PANDOC_CITEPROC_VERSION=`pandoc-citeproc --version | awk '{print $2;}'`
curl https://raw.githubusercontent.com/jgm/pandoc-citeproc/${PANDOC_CITEPROC_VERSION}/man/man1/pandoc-citeproc.1 > $DEST/share/man/man1/pandoc-citeproc.1
-strip deb/pandoc
-strip deb/pandoc-citeproc
mkdir -p $DEST/share/doc/pandoc-citeproc
find $DIST -type d | xargs chmod 755
-cp deb/pandoc $DEST/bin/
-cp deb/pandoc-citeproc $DEST/bin/
+strip $LOCAL/bin/pandoc
+strip $LOCAL/bin/pandoc-citeproc
+cp $LOCAL/bin/pandoc $DEST/bin/
+cp $LOCAL/bin/pandoc-citeproc $DEST/bin/
cp man/pandoc.1 $DEST/share/man/man1/pandoc.1
gzip -9 $DEST/share/man/man1/pandoc.1
gzip -9 $DEST/share/man/man1/pandoc-citeproc.1