4SANDBOX=`pwd`/.cabal-sandbox
5VERSION=$(grep -e '^Version' pandoc.cabal | awk '{print $2}')
6RESOURCES=$DIST/Resources
11SCRIPTS=$OSX/osx-resources
14PACKAGEMAKER=/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
15CPPHS=$SANDBOX/bin/cpphs
17# echo Removing old files...
25echo Building pandoc...
27# Use cpphs to avoid problems with clang cpp on ghc 7.8 osx:
28cabal install cpphs hsb2hs
29cabal install --ghc-options="-optl-mmacosx-version-min=10.6" --reinstall --flags="embed_data_files make-pandoc-man-pages" --ghc-options "-pgmP$CPPHS -optP--cpp" . pandoc-citeproc
32# get pandoc-citeproc man page:
33PANDOC_CITEPROC_PATH=`cabal unpack -d $DIST pandoc-citeproc | awk '{print $3;}'`
34cp $PANDOC_CITEPROC_PATH/man/man1/pandoc-citeproc.1 $MANDIR/man1/
37mkdir -p $DEST/share/man/man1
38mkdir -p $DEST/share/man/man5
39for f in pandoc pandoc-citeproc; do
40 cp $SANDBOX/bin/$f $DEST/bin/;
42cp $MANDIR/man1/pandoc_citeproc.1 $DEST/share/man/man1/
43$SANDBOX/bin/pandoc --man1 > $DEST/share/man/man1/pandoc.1
44$SANDBOX/bin/pandoc --man5 > $DEST/share/man/man5/pandoc_citeproc.5
46chown -R $ME:staff $DIST
48echo Copying license...
49$SANDBOX/bin/pandoc --data data -t html5 -s COPYING -o $RESOURCES/license.html
51echo Signing pandoc executable...
53codesign --force --sign "Developer ID Application: John Macfarlane" $DEST/bin/pandoc
54# make sure it's valid... returns nonzero exit code if it isn't:
55spctl --assess --type execute $DEST/bin/pandoc
57echo Creating OSX package...
58# remove old package first
61pkgbuild --root $DIST/pandoc --identifier net.johnmacfarlane.pandoc --version 1.13 --ownership recommended $DIST/pandoc.pkg
62productbuild --distribution osx/distribution.xml --resources $DIST/Resources --package-path $DIST --version 1.13 --sign "Developer ID Installer: John Macfarlane" $BASE-osx.pkg
65spctl --assess --type install $BASE-osx.pkg
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