]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-macos-103-packaging-20051201
authorDerrick Brashear <shadow@dementia.org>
Thu, 1 Dec 2005 05:19:49 +0000 (05:19 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 1 Dec 2005 05:19:49 +0000 (05:19 +0000)
fix packaging script for 10.3

(cherry picked from commit 72e221c0c164557d4eac98d982370ca925085f96)

src/packaging/MacOS/buildpkg.sh

index 817f1ff358dfab9be1b0df05db74303db96c8d15..92409416f9eb0c3085194aeb45d3ef73c2e64888 100644 (file)
@@ -135,10 +135,13 @@ if [ $majorvers -ge 7 ]; then
     cp OpenAFS.post_install $PKGRES/postinstall
     cp OpenAFS.pre_upgrade $PKGRES/preupgrade
     cp OpenAFS.post_install $PKGRES/postupgrade
-    cp InstallationCheck $PKGRES
-    mkdir $PKGRES/English.lproj
-    cp InstallationCheck $PKGRES/English.lproj
-    chmod a+x $PKGRES/postinstall $PKGRES/postupgrade $PKGRES/preupgrade $PKGRES/InstallationCheck
+    if [ $majorvers -ge 8 ]; then
+        cp InstallationCheck $PKGRES
+        mkdir $PKGRES/English.lproj
+        cp InstallationCheck $PKGRES/English.lproj
+        chmod a+x $PKGRES/InstallationCheck
+    fi
+    chmod a+x $PKGRES/postinstall $PKGRES/postupgrade $PKGRES/preupgrade
 else
     cp OpenAFS.post_install OpenAFS.pre_upgrade $PKGRES
     cp OpenAFS.post_install $PKGRES/OpenAFS.post_upgrade