4SANDBOX=`pwd`/.cabal-sandbox
5VERSION=$(grep -e '^Version' pandoc.cabal | awk '{print $2}')
6RESOURCES=$DIST/Resources
12CODESIGNID="Developer ID Application: John Macfarlane"
13PACKAGEMAKER=/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
14EXES="pandoc pandoc-citeproc biblio2yaml"
16echo Removing old files...
23echo Building pandoc...
25cabal install --reinstall --flags="embed_data_files" pandoc-citeproc
26cabal install --reinstall --flags="embed_data_files"
29mkdir -p $DEST/share/man/man1
30mkdir -p $DEST/share/man/man5
32 cp $SANDBOX/bin/$f $DEST/bin/;
33 cp $SANDBOX/share/man/man1/$f.1 $DEST/share/man/man1/
35cp $SANDBOX/share/man/man5/pandoc_markdown.5 $DEST/share/man/man5/
37chown -R $ME:staff $DIST
38# gzip $DEST/share/man/man?/*.*
39# cabal gives man pages the wrong permissions
40chmod +r $DEST/share/man/man?/*.*
42echo Copying license...
43$SANDBOX/bin/pandoc --data data -t rtf -s COPYING -o $RESOURCES/License.rtf
45echo Signing pandoc executable...
47codesign --force --sign "$CODESIGNID" $DEST/bin/pandoc
48# make sure it's valid... returns nonzero exit code if it isn't:
49spctl --assess --type execute $DEST/bin/pandoc
51echo Creating OSX package...
55 --id net.johnmacfarlane.pandoc \
56 --resources $RESOURCES \
63echo Signing package...
65sudo codesign --force --sign "$CODESIGNID" $BASE.pkg
66# make sure it's valid...
67spctl --assess --type install $BASE.pkg
69echo Creating disk image...
71sudo hdiutil create "$BASE.dmg" \
73 -volname "pandoc $VERSION" \
75sudo hdiutil internet-enable "$BASE.dmg"
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