5 x86_64) ARCHITECTURE=amd64;;
6 i686) ARCHITECTURE=i386;;
7 i386) ARCHITECTURE=i386;;
10ARTIFACTS="${ARTIFACTS:-/artifacts}"
19cabal v2-configure --enable-tests -f-export-dynamic -fembed_data_files --enable-executable-static --ghc-options '-optc-Os -optl=-pthread' pandoc
22for f in $(find dist-newstyle -name 'pandoc' -type f -perm /400); do cp $f /artifacts/; done
26VERSION=`$ARTIFACTS/pandoc --version | awk '{print $2; exit;}'`
27REVISION=${REVISION:-1}
28DEBVER=$VERSION-$REVISION
29BASE=pandoc-$DEBVER-$ARCHITECTURE
32COPYRIGHT=$DEST/share/doc/pandoc/copyright
35mkdir -p $DEST/share/man/man1
36mkdir -p $DEST/share/doc/pandoc
38find $DIST -type d | xargs chmod 755
39cp $ARTIFACTS/pandoc $DEST/bin/
41cp /mnt/man/pandoc.1 $DEST/share/man/man1/pandoc.1
42gzip -9 $DEST/share/man/man1/pandoc.1
44cp /mnt/COPYRIGHT $COPYRIGHT
47INSTALLED_SIZE=$(du -k -s $DEST | awk '{print $1}')
49perl -pe "s/VERSION/$DEBVER/" linux/control.in | \
50 perl -pe "s/ARCHITECTURE/$ARCHITECTURE/" | \
51 perl -pe "s/INSTALLED_SIZE/$INSTALLED_SIZE/" \
52 > $DIST/DEBIAN/control
54# we limit compression to avoid OOM error
55fakeroot dpkg-deb -Zgzip -z9 --build $DIST
57cp $BASE.deb $ARTIFACTS/
65mkdir $TARGET/bin $TARGET/share $TARGET/share/man $TARGET/share/man/man1
66cp /mnt/man/pandoc.1 $TARGET/share/man/man1
68strip $TARGET/bin/pandoc
69gzip -9 $TARGET/share/man/man1/pandoc.1
71tar cvzf $TARGET-linux-amd64.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