3ARTIFACTS=`pwd`/linux/artifacts
7stack install --stack-yaml stack.pkg.yaml \
8 --flag 'pandoc:embed_data_files' \
9 --local-bin-path $ARTIFACTS \
10 pandoc pandoc-citeproc
16 x86_64) ARCHITECTURE=amd64;;
17 i686) ARCHITECTURE=i386;;
18 i386) ARCHITECTURE=i386;;
21VERSION=`$ARTIFACTS/pandoc --version | awk '{print $2; exit;}'`
22PANDOC_CITEPROC_VERSION=`$ARTIFACTS/pandoc-citeproc --version | awk '{print $2; exit;}'`
23REVISION=${REVISION:-1}
24DEBVER=$VERSION-$REVISION
25BASE=pandoc-$DEBVER-$ARCHITECTURE
28COPYRIGHT=$DEST/share/doc/pandoc/copyright
32mkdir -p $DEST/share/man/man1
33mkdir -p $DEST/share/doc/pandoc
37mkdir -p $DEST/share/doc/pandoc-citeproc
38find $DIST -type d | xargs chmod 755
39cp $ARTIFACTS/pandoc $DEST/bin/
40cp $ARTIFACTS/pandoc-citeproc $DEST/bin/
42strip $DEST/bin/pandoc-citeproc
43cp man/pandoc.1 $DEST/share/man/man1/pandoc.1
44$ARTIFACTS/pandoc-citeproc --man > $DEST/share/man/man1/pandoc-citeproc.1
45gzip -9 $DEST/share/man/man1/pandoc.1
46gzip -9 $DEST/share/man/man1/pandoc-citeproc.1
48cp COPYRIGHT $COPYRIGHT
50echo "pandoc-citeproc" >> $COPYRIGHT
51$ARTIFACTS/pandoc-citeproc --license >> $COPYRIGHT
53INSTALLED_SIZE=$(du -k -s $DEST | awk '{print $1}')
55perl -pe "s/VERSION/$DEBVER/" linux/control.in | \
56 perl -pe "s/ARCHITECTURE/$ARCHITECTURE/" | \
57 perl -pe "s/INSTALLED_SIZE/$INSTALLED_SIZE/" \
58 > $DIST/DEBIAN/control
60fakeroot dpkg-deb --build $DIST
62cp $BASE.deb $ARTIFACTS/
66TARGET=$ARTIFACTS/pandoc-$VERSION
70mkdir $TARGET/bin $TARGET/share $TARGET/share/man $TARGET/share/man/man1
71$ARTIFACTS/pandoc-citeproc --man > $TARGET/share/man/man1/pandoc-citeproc.1
72cp man/pandoc.1 $TARGET/share/man/man1
73mv $ARTIFACTS/pandoc $ARTIFACTS/pandoc-citeproc $TARGET/bin
74strip $TARGET/bin/pandoc
75strip $TARGET/bin/pandoc-citeproc
76gzip -9 $TARGET/share/man/man1/pandoc.1
77gzip -9 $TARGET/share/man/man1/pandoc-citeproc.1
78tar cvzf $TARGET.tar.gz $TARGET
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list