@@ -1,43 +0,0 @@
2−# make directories for a Mac OSX package
4−# WARNING: This isn't finished. Don't use it yet!
5−# Need to fix permissions & ownerships. See
6−# http://s.sudre.free.fr/Stuff/PackageMaker_Howto.html
7−# Also, think about where to put these files. I'm not sure /usr/local/bin
8−# is in the path by default in OSX.
11−EXECUTABLES="pandoc markdown2html html2markdown markdown2latex latex2markdown markdown2pdf"
12−DOCS="README README.html BUGS TODO"
13−MAN_PAGES=$(echo "$EXECUTABLES" | sed -e 's#\([^ ]*\)#man/man1/\1\.1#g')
15−make # make sure the executables have been built
19−rm -rf osx-pkg # remove old package directories
21−mkdir osx-pkg/Resources
22−mkdir osx-pkg/Package_Root
23−mkdir osx-pkg/Package_Root/usr
24−mkdir osx-pkg/Package_Root/usr/local
25−mkdir osx-pkg/Package_Root/usr/local/bin
26−mkdir osx-pkg/Package_Root/usr/local/share
27−mkdir osx-pkg/Package_Root/usr/local/share/doc
28−mkdir osx-pkg/Package_Root/usr/local/share/doc/pandoc
29−mkdir osx-pkg/Package_Root/usr/local/man
30−mkdir osx-pkg/Package_Root/usr/local/man/man1
31−$PANDOC -s -w rtf README > osx-pkg/Resources/ReadMe.rtf
32−$PANDOC -s -w rtf LICENSE > osx-pkg/Resources/License.rtf
34−cp $EXECUTABLES osx-pkg/Package_Root/usr/local/bin/
35−cp $DOCS osx-pkg/Package_Root/usr/local/share/doc/pandoc/
36−cp $MAN_PAGES osx-pkg/Package_Root/usr/local/man/man1/
39−echo "You may now run PackageMaker.app. For Root, specify"
40−echo "osx-pkg/Package_Root. The ReadMe.rtf and License.rtf files"
41−echo "can be found in osx-pkg/Resources."