blob: ff54db6039668a8611f17216757e5e57013cb51a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
set -e
VERSION=$(grep -e '^Version' pandoc.cabal | awk '{print $2}')
TARGET=pandoc-$VERSION
cd /artifacts
mkdir $TARGET
mkdir $TARGET/bin $TARGET/man $TARGET/man/man1
./pandoc-citeproc --man > $TARGET/man/man1/pandoc-citeproc.1
cp /usr/src/pandoc/man/pandoc.1 $TARGET/man/man1
mv pandoc pandoc-citeproc $TARGET/bin
gzip -9 $TARGET/man/man1/pandoc.1
gzip -9 $TARGET/man/man1/pandoc-citeproc.1
tar cvzf $TARGET.tar.gz $TARGET
rm -r $TARGET
|