git.iko.soy/typeable/pandoc
on master help sign in
make_deb.sh: get pandoc-citeproc.1 directly from github.
commit307b94ac71481e4c32b469c618597f56d16fc74d authorJohn MacFarlane <jgm@berkeley.edu> dateThu 21 Jul 2016, 10:14 (10 years ago) parent2bd07f4
1 file changed+5−10
deb/make_deb.sh+5−10
deb/make_deb.sh+5−10
@@ -14,27 +14,24 @@ DIST=`pwd`/$BASE
1414DEST=$DIST/usr
1515ME=$(whoami)
1616COPYRIGHT=$DEST/share/doc/pandoc/copyright
17−TEMPDIR=make_binary_package.tmp.$$
1817
1918# We need this for hsb2hs:
2019PATH=$LOCAL/bin:$PATH
2120
21+mkdir -p $DEST/bin
22+mkdir -p $DEST/share/man/man1
23+mkdir -p $DEST/share/doc/pandoc
24+
2225stack install --install-ghc --stack-yaml deb/stack.yaml --local-bin-path . hsb2hs
2326stack install --install-ghc --stack-yaml deb/stack.yaml --local-bin-path . pandoc pandoc-citeproc
2427
2528make man/pandoc.1
2629# get pandoc-citeproc man page:
2730PANDOC_CITEPROC_VERSION=`pandoc-citeproc --version | awk '{print $2;}'`
28−PANDOC_CITEPROC_TARBALL=https://hackage.haskell.org/package/pandoc-citeproc-${PANDOC_CITEPROC_VERSION}/pandoc-citeproc-${PANDOC_CITEPROC_VERSION}.tar.gz
29−mkdir $TEMPDIR
30−curl ${PANDOC_CITEPROC_TARBALL} | tar xzC $TEMPDIR
31−PANDOC_CITEPROC_PATH=$TEMPDIR/pandoc-citeproc-${PANDOC_CITEPROC_VERSION}
31+curl https://raw.githubusercontent.com/jgm/pandoc-citeproc/${PANDOC_CITEPROC_VERSION}/man/man1/pandoc-citeproc.1 > $DEST/share/man/man1/pandoc-citeproc.1
3232
3333strip deb/pandoc
3434strip deb/pandoc-citeproc
35−mkdir -p $DEST/bin
36−mkdir -p $DEST/share/man/man1
37−mkdir -p $DEST/share/doc/pandoc
3835
3936mkdir -p $DEST/share/doc/pandoc-citeproc
4037find $DIST -type d | xargs chmod 755
@@ -42,13 +39,11 @@ cp deb/pandoc $DEST/bin/
4239cp deb/pandoc-citeproc $DEST/bin/
4340cp man/pandoc.1 $DEST/share/man/man1/pandoc.1
4441gzip -9 $DEST/share/man/man1/pandoc.1
45−cp ${PANDOC_CITEPROC_PATH}/man/man1/pandoc-citeproc.1 $DEST/share/man/man1/
4642gzip -9 $DEST/share/man/man1/pandoc-citeproc.1
4743cp COPYRIGHT $COPYRIGHT
4844echo "" >> $COPYRIGHT
4945echo "pandoc-citeproc" >> $COPYRIGHT
5046cat $PANDOC_CITEPROC_PATH/LICENSE >> $COPYRIGHT
51−rm -rf $TEMPDIR
5247
5348INSTALLED_SIZE=$(du -B 1024 -s $DEST | awk '{print $1}')
5449mkdir $DIST/DEBIAN