5 x86_64) ARCHITECTURE=amd64;;
6 i686) ARCHITECTURE=i386;;
7 i386) ARCHITECTURE=i386;;
8 aarch64) ARCHITECTURE=arm64;;
9 *) ARCHITECTURE=unknown;;
12ARTIFACTS="${ARTIFACTS:-/artifacts}"
21cabal v2-configure --enable-tests -f-export-dynamic -fembed_data_files --enable-executable-static --ghc-options '-split-sections -optc-Os -optl=-pthread' pandoc
24for f in $(find dist-newstyle -name 'pandoc' -type f -perm /400); do cp $f /artifacts/; done
28VERSION=`$ARTIFACTS/pandoc --version | awk '{print $2; exit;}'`
29REVISION=${REVISION:-1}
30DEBVER=$VERSION-$REVISION
31BASE=pandoc-$DEBVER-$ARCHITECTURE
34COPYRIGHT=$DEST/share/doc/pandoc/copyright
37mkdir -p $DEST/share/man/man1
38mkdir -p $DEST/share/doc/pandoc
40find $DIST -type d | xargs chmod 755
41cp $ARTIFACTS/pandoc $DEST/bin/
43cp /mnt/man/pandoc.1 $DEST/share/man/man1/pandoc.1
44gzip -9 $DEST/share/man/man1/pandoc.1
46cp /mnt/COPYRIGHT $COPYRIGHT
49INSTALLED_SIZE=$(du -k -s $DEST | awk '{print $1}')
51perl -pe "s/VERSION/$DEBVER/" linux/control.in | \
52 perl -pe "s/ARCHITECTURE/$ARCHITECTURE/" | \
53 perl -pe "s/INSTALLED_SIZE/$INSTALLED_SIZE/" \
54 > $DIST/DEBIAN/control
56# we limit compression to avoid OOM error
57fakeroot dpkg-deb -Zgzip -z9 --build $DIST
59cp $BASE.deb $ARTIFACTS/
67mkdir $TARGET/bin $TARGET/share $TARGET/share/man $TARGET/share/man/man1
68cp /mnt/man/pandoc.1 $TARGET/share/man/man1
70strip $TARGET/bin/pandoc
71gzip -9 $TARGET/share/man/man1/pandoc.1
73tar 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