Set up the build number and bundle versions
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 17 Dec 2007 20:15:22 +0000 (15:15 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 17 Dec 2007 20:15:22 +0000 (15:15 -0500)
* Info.plist
* Scrabbalize.xcodeproj: Build script to generate git number

Info.plist
Scrabbalize.xcodeproj/project.pbxproj

index 933166a4d8a67ac519c11f30f9c2d2ddc4a6102d..3d7f5ccf174cc656f7386dfa051f0aedc5d1a671 100644 (file)
@@ -9,7 +9,7 @@
        <key>CFBundleIconFile</key>
        <string></string>
        <key>CFBundleIdentifier</key>
-       <string>com.yourcompany.Scrabbalize</string>
+       <string>org.bluestatic.scrabbalize</string>
        <key>CFBundleInfoDictionaryVersion</key>
        <string>6.0</string>
        <key>CFBundleName</key>
        <string>????</string>
        <key>CFBundleVersion</key>
        <string>1.0</string>
+       <key>CFBundleShortVersionString</key>
+       <string>1.0 Beta 1</string>
+       <key>CFBundleGetInfoString</key>
+       <string>${EXECUTABLE_NAME} 1.0 Beta 1, Copyright 2007 Blue Static</string>
        <key>NSMainNibFile</key>
        <string>MainMenu</string>
        <key>NSPrincipalClass</key>
index 8d0266e640119de69fbe4f61140ec27377de9249..06b1bd1af0ae618ca596867fecac5c23dc88d105 100644 (file)
                                8D1107290486CEB800E47090 /* Resources */,
                                8D11072C0486CEB800E47090 /* Sources */,
                                8D11072E0486CEB800E47090 /* Frameworks */,
+                               1EAAC91E0D170FA40058A23D /* ShellScript */,
                        );
                        buildRules = (
                        );
                };
 /* End PBXResourcesBuildPhase section */
 
+/* Begin PBXShellScriptBuildPhase section */
+               1EAAC91E0D170FA40058A23D /* ShellScript */ = {
+                       isa = PBXShellScriptBuildPhase;
+                       buildActionMask = 2147483647;
+                       files = (
+                       );
+                       inputPaths = (
+                       );
+                       outputPaths = (
+                       );
+                       runOnlyForDeploymentPostprocessing = 0;
+                       shellPath = /usr/bin/ruby;
+                       shellScript = "require \"ftools\"\nrequire \"Time\"\n\nhash = %x{/usr/local/bin/git log -1 --pretty=format:%h}\ntimestamp = %x{/usr/local/bin/git log -1 --pretty=format:%ct}\ntime = Time.at(timestamp.to_i)\n\nbuild = (\"%02d\" % time.year) + (\"%02d\" % time.month) + (\"%02d\" % time.day) + \".\" + hash\n\ninfopath = ENV[\"CONFIGURATION_BUILD_DIR\"] + \"/\" + ENV[\"INFOPLIST_PATH\"]\n\nfile = \"\"\nio = File.new(infopath)\nlastline = \"\"\nwhile line = io.gets do\n\tif lastline.match(\"CFBundleVersion\")\n\t\tfile += \"\\t<string>#{build}</string>\\n\"\n\telse\n\t\tfile += line\n\tend\n\tlastline = line\nend\nio.close\n\nio = File.new(infopath, \"w\")\nio.write(file)\nio.close";
+               };
+/* End PBXShellScriptBuildPhase section */
+
 /* Begin PBXSourcesBuildPhase section */
                8D11072C0486CEB800E47090 /* Sources */ = {
                        isa = PBXSourcesBuildPhase;