Add a set of strings for the InstallationCheck
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 2 Feb 2010 15:59:12 +0000 (15:59 +0000)
committerDerrick Brashear <shadow|account-1000005@unknown>
Tue, 2 Feb 2010 18:07:34 +0000 (10:07 -0800)
InstallationCheck needs a strings dictionary to turn its errors
into human readable content. Add such a dictionary, and use the
correct product name and version for each Mac OS X release.

FIXES 126322

Change-Id: I8401a1163ea078e690152215c20db6970969ee04
Reviewed-on: http://gerrit.openafs.org/1208
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/packaging/MacOS/InstallationCheck.strings [deleted file]
src/packaging/MacOS/InstallationCheck.strings.10 [new file with mode: 0644]
src/packaging/MacOS/InstallationCheck.strings.8 [new file with mode: 0644]
src/packaging/MacOS/InstallationCheck.strings.9 [new file with mode: 0644]
src/packaging/MacOS/buildpkg.sh.in

diff --git a/src/packaging/MacOS/InstallationCheck.strings b/src/packaging/MacOS/InstallationCheck.strings
deleted file mode 100644 (file)
index 62d12c1..0000000
+++ /dev/null
@@ -1 +0,0 @@
-"16" = "This OpenAFS release requires Tiger (10.4)"
diff --git a/src/packaging/MacOS/InstallationCheck.strings.10 b/src/packaging/MacOS/InstallationCheck.strings.10
new file mode 100644 (file)
index 0000000..d0bdca1
--- /dev/null
@@ -0,0 +1 @@
+"16" = "This OpenAFS release requires Snow Leopard (10.6)";
diff --git a/src/packaging/MacOS/InstallationCheck.strings.8 b/src/packaging/MacOS/InstallationCheck.strings.8
new file mode 100644 (file)
index 0000000..33cd98e
--- /dev/null
@@ -0,0 +1 @@
+"16" = "This OpenAFS release requires Tiger (10.4)";
diff --git a/src/packaging/MacOS/InstallationCheck.strings.9 b/src/packaging/MacOS/InstallationCheck.strings.9
new file mode 100644 (file)
index 0000000..07c075c
--- /dev/null
@@ -0,0 +1 @@
+"16" = "This OpenAFS release requires Leopard (10.5)";
index 7731c29..c6ada50 100644 (file)
@@ -210,9 +210,10 @@ if [ $secondpass = yes ]; then
        mkdir $DPKGRES
        cp License.rtf $DPKGRES
        cp InstallationCheck.$majorvers $DPKGRES/InstallationCheck
-       mkdir -p $DPKGRES/English.lproj
-       cp InstallationCheck.$majorvers $DPKGRES/English.lproj/InstallationCheck
        chmod a+x $DPKGRES/InstallationCheck
+       mkdir -p $DPKGRES/English.lproj
+       cp InstallationCheck.strings.$majorvers \
+               $DPKGRES/English.lproj/InstallationCheck.strings
        cp background.jpg $DPKGRES/background.jpg
        chown -R root${SEP}wheel $DPKGRES
        rm -rf $CURDIR/OpenAFS-debug-extension.pkg
@@ -231,7 +232,7 @@ if [ $secondpass = yes ]; then
        if [ $majorvers -ge 8 ]; then
            cp InstallationCheck.$majorvers $PKGRES/InstallationCheck
            mkdir -p $PKGRES/English.lproj
-           cp InstallationCheck.$majorvers $PKGRES/English.lproj/InstallationCheck
+           cp InstallationCheck.strings.$majorvers $PKGRES/English.lproj/InstallationCheck.strings
            chmod a+x $PKGRES/InstallationCheck
        fi
        chmod a+x $PKGRES/postinstall $PKGRES/postupgrade $PKGRES/preupgrade