aboutsummaryrefslogtreecommitdiff
path: root/linux/make_tarball.sh
blob: fe520a3d8dd89c9f613359b9c14b4ce0536ee873 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
set -e

VERSION=$(grep -e '^Version' pandoc.cabal | awk '{print $2}')
TARGET=pandoc-$VERSION

cd /artifacts
rm -rf $TARGET
mkdir $TARGET
mkdir $TARGET/bin $TARGET/share $TARGET/share/man $TARGET/share/man/man1
./pandoc-citeproc --man > $TARGET/share/man/man1/pandoc-citeproc.1
cp /usr/src/pandoc/man/pandoc.1 $TARGET/share/man/man1
mv pandoc pandoc-citeproc $TARGET/bin
gzip -9 $TARGET/share/man/man1/pandoc.1
gzip -9 $TARGET/share/man/man1/pandoc-citeproc.1
tar cvzf $TARGET.tar.gz $TARGET
rm -r $TARGET