Reviewed by Mark Rowe.
authorthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Apr 2007 16:29:19 +0000 (16:29 +0000)
committerthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Apr 2007 16:29:19 +0000 (16:29 +0000)
        Adds a build phase script that ensures WebKit's version dosen't end in a 4.
        If our version ends in 4, some sites might think we are Netscape 4 in their
        user agent checks.

        * Configurations/Version.xcconfig:
        * WebKit.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@20755 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/ChangeLog
WebKit/Configurations/Version.xcconfig
WebKit/WebKit.xcodeproj/project.pbxproj

index 98056df..7340927 100644 (file)
@@ -1,3 +1,14 @@
+2007-04-06  Timothy Hatcher  <timothy@apple.com>
+
+        Reviewed by Mark Rowe.
+
+        Adds a build phase script that ensures WebKit's version dosen't end in a 4.
+        If our version ends in 4, some sites might think we are Netscape 4 in their
+        user agent checks.
+
+        * Configurations/Version.xcconfig:
+        * WebKit.xcodeproj/project.pbxproj:
+
 2007-04-05  Anders Carlsson  <andersca@apple.com>
 
         Reviewed by Adam.
index 92142bb..0b3a1ef 100644 (file)
@@ -1,5 +1,5 @@
 MAJOR_VERSION = 522;
-MINOR_VERSION = 4;
+MINOR_VERSION = 5;
 TINY_VERSION = 0;
 FULL_VERSION = $(MAJOR_VERSION).$(MINOR_VERSION);
 
index 24ad50c..5b29885 100644 (file)
                        isa = PBXNativeTarget;
                        buildConfigurationList = 149C282D08902B0F008A9EFC /* Build configuration list for PBXNativeTarget "WebKit" */;
                        buildPhases = (
+                               1C5BFFFE0BAF8AEA004FF4F5 /* Check Bundle Version */,
                                1C6CB0510AA63EB000D23BFD /* Migrate Headers */,
                                939811300824BF01008DF038 /* Make Frameworks Symbolic Link */,
                                9398100D0824BF01008DF038 /* Headers */,
                0867D690FE84028FC02AAC07 /* Project object */ = {
                        isa = PBXProject;
                        buildConfigurationList = 149C283208902B0F008A9EFC /* Build configuration list for PBXProject "WebKit" */;
+                       compatibilityVersion = "Xcode 2.4";
                        hasScannedForEncodings = 1;
                        knownRegions = (
                                English,
                        productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
                        projectDirPath = "";
                        projectRoot = "";
+                       shouldCheckCompatibility = 1;
                        targets = (
                                9398100A0824BF01008DF038 /* WebKit */,
                        );
 /* End PBXResourcesBuildPhase section */
 
 /* Begin PBXShellScriptBuildPhase section */
+               1C5BFFFE0BAF8AEA004FF4F5 /* Check Bundle Version */ = {
+                       isa = PBXShellScriptBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                       );
+                       inputPaths = (
+                               "$(SRCROOT)/Configurations/Version.xcconfig",
+                       );
+                       name = "Check Bundle Version";
+                       outputPaths = (
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+                       shellPath = "/usr/bin/perl -w";
+                       shellScript = "if ($ENV{BUNDLE_VERSION} =~ /4\\.|4$/) {\n    die \"Can't set WebKit's version to something that ends in a 4! If we do, someone's going to think it's Netscape 4.\\n\";\n}\n";
+                       showEnvVarsInLog = 0;
+               };
                1C6CB0510AA63EB000D23BFD /* Migrate Headers */ = {
                        isa = PBXShellScriptBuildPhase;
                        buildActionMask = 2147483647;