From f373c9326a6715ab127bfe95426c3f55b97bfcfd Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Tue, 31 Oct 2006 07:06:30 +0000 Subject: 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 --- Description.plist | 10 ++++++++++ Info.plist | 42 ++++++++++++++++++++++++++++++++++++++++++ Makefile | 10 +++++----- 3 files changed, 57 insertions(+), 5 deletions(-) create mode 100644 Description.plist create mode 100644 Info.plist diff --git a/Description.plist b/Description.plist new file mode 100644 index 000000000..8795e8831 --- /dev/null +++ b/Description.plist @@ -0,0 +1,10 @@ + + + + + IFPkgDescriptionDescription + + IFPkgDescriptionTitle + Pandoc + + diff --git a/Info.plist b/Info.plist new file mode 100644 index 000000000..b3f36f5c5 --- /dev/null +++ b/Info.plist @@ -0,0 +1,42 @@ + + + + + CFBundleGetInfoString + @VERSION@, (c) 2006 John MacFarlane (released under GPL) + CFBundleIdentifier + + CFBundleShortVersionString + @VERSION@ + IFPkgFlagAllowBackRev + + IFPkgFlagAuthorizationAction + RootAuthorization + IFPkgFlagBackgroundAlignment + topleft + IFPkgFlagBackgroundScaling + none + IFPkgFlagDefaultLocation + / + IFPkgFlagFollowLinks + + IFPkgFlagInstallFat + + IFPkgFlagInstalledSize + 1788 + IFPkgFlagIsRequired + + IFPkgFlagOverwritePermissions + + IFPkgFlagRelocatable + + IFPkgFlagRestartAction + NoRestart + IFPkgFlagRootVolumeOnly + + IFPkgFlagUpdateInstalledLanguages + + IFPkgFormatVersion + 0.10000000149011612 + + diff --git a/Makefile b/Makefile index 590eb0af9..f18e3275f 100644 --- a/Makefile +++ b/Makefile @@ -175,14 +175,14 @@ $(osx_dest): $(doc_more) DESTDIR=$(osx_dest)/Package_root $(MAKE) install-program find $(osx_dest) -type f -regex ".*bin/.*" | xargs chmod +x find $(osx_dest) -type f -regex ".*bin/$(THIS)" | xargs $(STRIP) + find $(osx_dest) -type f | xargs chgrp wheel + find $(osx_dest) -type f | xargs chown root $(INSTALL) -d $(osx_dest)/Resources mv README.rtf $(osx_dest)/Resources/ReadMe.rtf mv LICENSE.rtf $(osx_dest)/Resources/License.rtf - @echo - @echo "You may now run PackageMaker.app. For Root, specify" - @echo "$(osx_dest)/Package_root. The ReadMe.rtf and License.rtf files" - @echo "can be found in $(osx_dest)/Resources." - @echo + sed -e 's/@VERSION@/$(VERSION)/g' Info.plist > $(osx_dest)/Info.plist + cp Description.plist $(osx_dest)/ + 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 .PHONY: test test-markdown test: $(BINS) -- cgit v1.2.3