]> granicus.if.org Git - graphviz/commitdiff
GUI now installs only in /Applications, instead of hunting down other copies of itsel...
authorglenlow <devnull@localhost>
Thu, 26 Feb 2009 05:25:53 +0000 (05:25 +0000)
committerglenlow <devnull@localhost>
Thu, 26 Feb 2009 05:25:53 +0000 (05:25 +0000)
macosx/build/Makefile
macosx/build/graphviz.pmdoc/01local.xml.in
macosx/build/graphviz.pmdoc/02graphviz.xml.in
macosx/build/graphviz.pmdoc/index.xml
macosx/build/pmsurvey [new file with mode: 0755]

index bdaf068128097ee98aea7cbe7caa2b528c041cfa..2ab854bf731b713e8439d2228354cfd11956e14c 100644 (file)
@@ -3,6 +3,7 @@
 MAKE=make
 PACKAGEMAKER=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
 XCODEBUILD=xcodebuild
+PMSURVEY=$(CURDIR)/pmsurvey
 
 # prefix
 
@@ -17,11 +18,17 @@ DOT=dot
 # graphviz
 #
 
-graphviz.pkg: graphviz.pmdoc usr/local/bin/$(DOT) Release/Graphviz.app postinstall
+graphviz.pkg: usr/local/bin/$(DOT) graphviz.pmdoc/02graphviz-contents.xml postinstall
        @echo
        @echo PACKAGING GRAPHVIZ...
        @echo
-       "$(PACKAGEMAKER)" --doc graphviz.pmdoc --out $@
+       "$(PACKAGEMAKER)" --verbose --doc graphviz.pmdoc --out $@
+
+graphviz.pmdoc/02graphviz-contents.xml: Release/Graphviz.app
+       @echo
+       @echo SURVEYING GRAPHVIZ...
+       @echo
+       "$(PMSURVEY)" "$(CURDIR)/Release/Graphviz.app" >$@ 
 
 usr/local/bin/$(DOT): $(GV_DIR)/cmd/dot/.libs/$(DOT)
        @echo
index 1585e2729d2649b72464f7cad8da74ec5338a0ed..eda333a0d39f2451bf7f1617d66bb6cf0db3fb96 100644 (file)
@@ -1 +1 @@
-<pkgref spec="1.12" uuid="9C7B00A4-EC80-4DFD-B683-A517A4FEE263"><config><identifier>com.att.graphviz.cli.pkg</identifier><version>@VERSION@</version><description></description><post-install type="none"/><requireAuthorization/><installFrom relative="true">usr/local</installFrom><installTo mod="true">/usr/local</installTo><flags><followSymbolicLinks/></flags><packageStore type="internal"></packageStore><mod>parent</mod><mod>scripts.postinstall.path</mod><mod>installFrom.isRelativeType</mod><mod>installTo.path</mod><mod>version</mod><mod>installTo</mod><mod>identifier</mod></config><scripts><postinstall relative="true" mod="true">postinstall</postinstall></scripts></pkgref>
+<pkgref spec="1.12" uuid="9C7B00A4-EC80-4DFD-B683-A517A4FEE263"><config><identifier>com.att.graphviz.cli.pkg</identifier><version>@VERSION@</version><description></description><post-install type="none"/><requireAuthorization/><installFrom relative="true">usr/local</installFrom><installTo mod="true">/usr/local</installTo><flags><followSymbolicLinks/></flags><packageStore type="internal"></packageStore><mod>parent</mod><mod>scripts.postinstall.path</mod><mod>installFrom.isRelativeType</mod><mod>installTo.path</mod><mod>version</mod><mod>installTo</mod><mod>identifier</mod></config><scripts><postinstall relative="true" mod="true">postinstall</postinstall></scripts><contents><file-list>01local-contents.xml</file-list><filter>/CVS$</filter><filter>/\.svn$</filter><filter>/\.cvsignore$</filter><filter>/\.cvspass$</filter><filter>/\.DS_Store$</filter></contents></pkgref>
index 4f23f4726520b33b330fdb7185766e3616470156..b103888242c3d520fdb5fc5d5cc82b778fe4746d 100644 (file)
@@ -1 +1 @@
-<pkgref spec="1.12" uuid="03F0738B-6325-4254-B837-515A7C080003"><config><identifier>com.att.graphviz.gui.pkg</identifier><version>@VERSION@</version><description></description><post-install type="none"/><requireAuthorization/><installFrom relative="true" mod="true" includeRoot="true">Release/Graphviz.app</installFrom><installTo relocatable="true">/Applications</installTo><flags><followSymbolicLinks/></flags><packageStore type="internal"></packageStore><mod>parent</mod><mod>relocatable</mod><mod>version</mod><mod>includeRoot</mod><mod>installFrom.path</mod><mod>identifier</mod></config><contents><file-list>02graphviz-contents.xml</file-list><component id="com.att.graphviz" version="@VERSION@"><mod>isRelocatable</mod><mod>pathMapping</mod></component><filter>/CVS$</filter><filter>/\.svn$</filter><filter>/\.cvsignore$</filter><filter>/\.cvspass$</filter><filter>/\.DS_Store$</filter></contents></pkgref>
+<pkgref spec="1.12" uuid="03F0738B-6325-4254-B837-515A7C080003"><config><identifier>com.att.graphviz.gui.pkg</identifier><version>@VERSION@</version><description></description><post-install type="none"/><requireAuthorization/><installFrom relative="true" mod="true" includeRoot="true">Release/Graphviz.app</installFrom><installTo relocatable="true">/Applications</installTo><flags><followSymbolicLinks/></flags><packageStore type="internal"></packageStore><mod>parent</mod><mod>relocatable</mod><mod>version</mod><mod>installFrom.isRelativeType</mod><mod>identifier</mod></config><contents><file-list>02graphviz-contents.xml</file-list><component id="com.att.graphviz" path="@abs_top_builddir@/macosx/build/Release/Graphviz.app" version="@VERSION@"><mod>isRelocatable</mod></component><filter>/CVS$</filter><filter>/\.svn$</filter><filter>/\.cvsignore$</filter><filter>/\.cvspass$</filter><filter>/\.DS_Store$</filter></contents></pkgref>
index 8bc4fc722105ef9350d5a34e51f09307eca05798..c8d98c189b30da72e7defc53968106dfc7cd507c 100644 (file)
@@ -1 +1 @@
-<pkmkdoc spec="1.12"><properties><title>Graphviz</title><organization>com.att</organization><userSees ui="both"/><min-target os="3"/><domain system="true"/></properties><distribution><versions min-spec="1.000000"/><scripts></scripts></distribution><contents><choice title="Command Line Tools and Libraries" id="cli" starts_selected="true" starts_enabled="true" starts_hidden="false"><pkgref id="com.att.graphviz.cli.pkg"/></choice><choice title="Viewer Application" id="gui" starts_selected="true" starts_enabled="true" starts_hidden="false"><pkgref id="com.att.graphviz.gui.pkg"/></choice></contents><resources bg-scale="none" bg-align="topleft"><locale lang="en"><resource relative="true" mod="true" type="license">English.lproj/License.rtf</resource></locale></resources><flags/><item type="file">01local.xml</item><item type="file">02graphviz.xml</item><mod>properties.title</mod><mod>properties.systemDomain</mod><mod>properties.anywhereDomain</mod></pkmkdoc>
\ No newline at end of file
+<pkmkdoc spec="1.12"><properties><title>Graphviz</title><organization>com.att</organization><userSees ui="both"/><min-target os="3"/><domain system="true"/></properties><distribution><versions min-spec="1.000000"/><scripts></scripts></distribution><contents><choice title="Command Line Tools and Libraries" id="cli" starts_selected="true" starts_enabled="true" starts_hidden="false"><pkgref id="com.att.graphviz.cli.pkg"/></choice><choice title="Viewer Application" id="gui" starts_selected="true" starts_enabled="true" starts_hidden="false"><pkgref id="com.att.graphviz.gui.pkg"/></choice></contents><resources bg-scale="none" bg-align="topleft"><locale lang="en"><resource relative="true" mod="true" type="license">English.lproj/License.rtf</resource></locale></resources><flags/><item type="file">01local.xml</item><item type="file">02graphviz.xml</item><mod>properties.systemDomain</mod><mod>properties.anywhereDomain</mod><mod>properties.title</mod></pkmkdoc>
diff --git a/macosx/build/pmsurvey b/macosx/build/pmsurvey
new file mode 100755 (executable)
index 0000000..7c8f158
--- /dev/null
@@ -0,0 +1,57 @@
+#!/bin/bash
+
+# set up owner, group and permissions for system or user directories (2nd parameter)
+OWNER=root
+GROUP=admin
+DIRMOD=16893   # drwxrwxr-x
+EXEMOD=33277   # -rwxrwxr-x
+LINKMOD=41469  # lrwxrwxr-x
+FILEMOD=33204  # -rw-rw-r--
+
+# recursive survey of directory:
+# ignore cvs, svn and Finder crap
+# choose file mode depending on what kind of file we got
+       
+survey ()
+{
+       for file in `ls -1A $1`
+       do
+               case $file in
+                       CVS | .svn | .cvsignore | .cvspass | .DS_Store )
+                               ;;
+                       * )
+                               if [ -d "$1/$file" ]
+                               then
+                                       echo "<f n='$file' o='$OWNER' g='$GROUP' p='$DIRMOD'>"
+                                       survey "$1/$file"
+                                       echo "<mod>mode</mod>"
+                                       echo "</f>"
+                               elif [ -x "$1/$file" ]
+                               then
+                                       echo "<f n='$file' o='$OWNER' g='$GROUP' p='$EXEMOD'>"
+                                       echo "<mod>mode</mod>"
+                                       echo "</f>"
+                               elif [ -L "$1/$file" ]
+                               then
+                                       echo "<f n='$file' o='$OWNER' g='$GROUP' p='$LINKMOD'>"
+                                       echo "<mod>mode</mod>"
+                                       echo "</f>"
+                               else
+                                       echo "<f n='$file' o='$OWNER' g='$GROUP' p='$FILEMOD'>"
+                                       echo "<mod>mode</mod>"
+                                       echo "</f>"
+                               fi
+                               ;;
+               esac
+       done
+} 
+
+# output root XML and top directory, then recursively survey the directories
+
+echo "<?xml version='1.0'?>"
+echo "<pkg-contents spec='1.12'>"
+echo "<f n='${1##*/}' o='$OWNER' g='$GROUP' p='$DIRMOD' pt='$1' m='true' t='file'>"
+survey "$1"
+echo "<mod>mode</mod>"
+echo "</f>"
+echo "</pkg-contents>"