git.iko.soy/typeable/pandoc
on master help sign in
Improved osx-pkg target; added Info.plist and Description.plist.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@50 788f1e2b-df1e-0410-8736-df70ead52e1b

commitf373c9326a6715ab127bfe95426c3f55b97bfcfd authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateTue 31 Oct 2006, 07:06 (20 years ago) parent3dbd266
3 files changed+57−5
Description.plist+10 Info.plist+42 Makefile+5−5
Description.plistnew file+10
@@ -0,0 +1,10 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+<plist version="1.0">
4+<dict>
5+ <key>IFPkgDescriptionDescription</key>
6+ <string></string>
7+ <key>IFPkgDescriptionTitle</key>
8+ <string>Pandoc</string>
9+</dict>
10+</plist>
Info.plistnew file+42
@@ -0,0 +1,42 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+<plist version="1.0">
4+<dict>
5+ <key>CFBundleGetInfoString</key>
6+ <string>@VERSION@, (c) 2006 John MacFarlane (released under GPL)</string>
7+ <key>CFBundleIdentifier</key>
8+ <string></string>
9+ <key>CFBundleShortVersionString</key>
10+ <string>@VERSION@</string>
11+ <key>IFPkgFlagAllowBackRev</key>
12+ <false/>
13+ <key>IFPkgFlagAuthorizationAction</key>
14+ <string>RootAuthorization</string>
15+ <key>IFPkgFlagBackgroundAlignment</key>
16+ <string>topleft</string>
17+ <key>IFPkgFlagBackgroundScaling</key>
18+ <string>none</string>
19+ <key>IFPkgFlagDefaultLocation</key>
20+ <string>/</string>
21+ <key>IFPkgFlagFollowLinks</key>
22+ <true/>
23+ <key>IFPkgFlagInstallFat</key>
24+ <false/>
25+ <key>IFPkgFlagInstalledSize</key>
26+ <integer>1788</integer>
27+ <key>IFPkgFlagIsRequired</key>
28+ <false/>
29+ <key>IFPkgFlagOverwritePermissions</key>
30+ <false/>
31+ <key>IFPkgFlagRelocatable</key>
32+ <false/>
33+ <key>IFPkgFlagRestartAction</key>
34+ <string>NoRestart</string>
35+ <key>IFPkgFlagRootVolumeOnly</key>
36+ <false/>
37+ <key>IFPkgFlagUpdateInstalledLanguages</key>
38+ <false/>
39+ <key>IFPkgFormatVersion</key>
40+ <real>0.10000000149011612</real>
41+</dict>
42+</plist>
Makefile+5−5
@@ -175,14 +175,14 @@ $(osx_dest): $(doc_more)
175175 DESTDIR=$(osx_dest)/Package_root $(MAKE) install-program
176176 find $(osx_dest) -type f -regex ".*bin/.*" | xargs chmod +x
177177 find $(osx_dest) -type f -regex ".*bin/$(THIS)" | xargs $(STRIP)
178+ find $(osx_dest) -type f | xargs chgrp wheel
179+ find $(osx_dest) -type f | xargs chown root
178180 $(INSTALL) -d $(osx_dest)/Resources
179181 mv README.rtf $(osx_dest)/Resources/ReadMe.rtf
180182 mv LICENSE.rtf $(osx_dest)/Resources/License.rtf
181− @echo
182− @echo "You may now run PackageMaker.app. For Root, specify"
183− @echo "$(osx_dest)/Package_root. The ReadMe.rtf and License.rtf files"
184− @echo "can be found in $(osx_dest)/Resources."
185− @echo
183+ sed -e 's/@VERSION@/$(VERSION)/g' Info.plist > $(osx_dest)/Info.plist
184+ cp Description.plist $(osx_dest)/
185+ PackageMaker -build -p Pandoc_$(VERSION).pkg -f $(osx_dest)/Package_root -r $(osx_dest)/Resources -i $(osx_dest)/Info.plist -d $(osx_dest)/Description.plist
186186
187187.PHONY: test test-markdown
188188test: $(BINS)