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