5 x86_64) ARCHITECTURE=amd64;;
6 i686) ARCHITECTURE=i386;;
7 i386) ARCHITECTURE=i386;;
8 aarch64) ARCHITECTURE=arm64;;
9 *) ARCHITECTURE=unknown;;
12ARTIFACTS="${ARTIFACTS:-/artifacts}"
14# This is our sentinel that tells us when we're done.
18 echo "All done!" > "$ARTIFACTS/DONE"
29cabal v2-configure --enable-tests -f-export-dynamic -fembed_data_files --enable-executable-static --ghc-options '-j4 +RTS -A256m -RTS -split-sections -optc-Os -optl=-pthread' pandoc
32for f in $(find dist-newstyle -name 'pandoc' -type f -perm /400); do cp $f /artifacts/; done
36VERSION=`$ARTIFACTS/pandoc --version | awk '{print $2; exit;}'`
37REVISION=${REVISION:-1}
38DEBVER=$VERSION-$REVISION
39BASE=pandoc-$DEBVER-$ARCHITECTURE
42COPYRIGHT=$DEST/share/doc/pandoc/copyright
45mkdir -p $DEST/share/man/man1
46mkdir -p $DEST/share/doc/pandoc
48find $DIST -type d | xargs chmod 755
49cp $ARTIFACTS/pandoc $DEST/bin/
51cp /mnt/man/pandoc.1 $DEST/share/man/man1/pandoc.1
52gzip -9 $DEST/share/man/man1/pandoc.1
54cp /mnt/COPYRIGHT $COPYRIGHT
57INSTALLED_SIZE=$(du -k -s $DEST | awk '{print $1}')
59perl -pe "s/VERSION/$DEBVER/" linux/control.in | \
60 perl -pe "s/ARCHITECTURE/$ARCHITECTURE/" | \
61 perl -pe "s/INSTALLED_SIZE/$INSTALLED_SIZE/" \
62 > $DIST/DEBIAN/control
64# we limit compression to avoid OOM error
65fakeroot dpkg-deb -Zgzip -z9 --build $DIST
67cp $BASE.deb $ARTIFACTS/
75mkdir $TARGET/bin $TARGET/share $TARGET/share/man $TARGET/share/man/man1
76cp /mnt/man/pandoc.1 $TARGET/share/man/man1
78strip $TARGET/bin/pandoc
79gzip -9 $TARGET/share/man/man1/pandoc.1
81tar cvzf $TARGET-linux-$ARCHITECTURE.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