5 x86_64) ARCHITECTURE=amd64;;
6 i686) ARCHITECTURE=i386;;
7 i386) ARCHITECTURE=i386;;
10SANDBOX=`pwd`/.cabal-sandbox
11VERSION=$(grep -e '^Version' pandoc.cabal | awk '{print $2}')
13DEBVER=$VERSION-$DEBPKGVER
14BASE=pandoc-$DEBVER-$ARCHITECTURE
18COPYRIGHT=$DEST/share/doc/pandoc/copyright
20# echo Removing old files...
27export PATH=`pwd`/.cabal-sandbox/bin:$PATH
28which hsb2hs || cabal install hsb2hs
29echo Building pandoc...
31cabal install --force --reinstall --flags="embed_data_files make-pandoc-man-pages" . pandoc-citeproc
33# get pandoc-citeproc man page:
34PANDOC_CITEPROC_PATH=`cabal unpack -d make_binary_package.tmp.$$ pandoc-citeproc | awk '{print $3;}'`
35strip $SANDBOX/bin/pandoc
36strip $SANDBOX/bin/pandoc-citeproc
38mkdir -p $DEST/share/man/man1
39mkdir -p $DEST/share/doc/pandoc
41mkdir -p $DEST/share/doc/pandoc-citeproc
42find $DIST -type d | xargs chmod 755
43cp $SANDBOX/bin/pandoc $DEST/bin/
44cp $SANDBOX/bin/pandoc-citeproc $DEST/bin/
45cp $SANDBOX/share/man/man1/pandoc.1 $DEST/share/man/man1/pandoc.1
46gzip -9 $DEST/share/man/man1/pandoc.1
47cp $PANDOC_CITEPROC_PATH/man/man1/pandoc-citeproc.1 $DEST/share/man/man1/
48gzip -9 $DEST/share/man/man1/pandoc-citeproc.1
49cp COPYRIGHT $COPYRIGHT
51echo "pandoc-citeproc" >> $COPYRIGHT
52cat $PANDOC_CITEPROC_PATH/LICENSE >> $COPYRIGHT
53rm -rf make_binary_package.tmp.$$
55INSTALLED_SIZE=$(du -B 1024 -s $DEST | awk '{print $1}')
57perl -pe "s/VERSION/$DEBVER/" deb/control.in | \
58 perl -pe "s/ARCHITECTURE/$ARCHITECTURE/" | \
59 perl -pe "s/INSTALLED_SIZE/$INSTALLED_SIZE/" \
60 > $DIST/DEBIAN/control
62fakeroot dpkg-deb --build $DIST
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