Changeset 75311


Ignore:
Timestamp:
Jan 21, 2011, 10:01:37 AM (9 years ago)
Author:
ryandesign@…
Message:

Set the CFBundleVersion to the revision in a post-build run script phase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • users/ryandesign/PCLauncher/PCLauncher.xcodeproj/project.pbxproj

    r75306 r75311  
    164164                                8D11072E0486CEB800E47090 /* Frameworks */,
    165165                                505184E9127A2FAB00078EC1 /* ShellScript */,
     166                                50D13B3D12E8FE1100D0748F /* ShellScript */,
    166167                                50518529127A375200078EC1 /* CopyFiles */,
    167168                        );
     
    225226                        shellPath = /bin/sh;
    226227                        shellScript = "MY_DIR=\"Banners\"\nmkdir -p \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/${MY_DIR}\"\nfind \"${PROJECT_DIR}/${MY_DIR}\" -name '*.jpg' -print0 | xargs -0 -J % cp % \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/${MY_DIR}\" || exit $?\n";
     228                };
     229                50D13B3D12E8FE1100D0748F /* ShellScript */ = {
     230                        isa = PBXShellScriptBuildPhase;
     231                        buildActionMask = 2147483647;
     232                        files = (
     233                        );
     234                        inputPaths = (
     235                        );
     236                        outputPaths = (
     237                        );
     238                        runOnlyForDeploymentPostprocessing = 0;
     239                        shellPath = /bin/sh;
     240                        shellScript = "SVNVERSION=$(which svnversion)\nPLISTBUDDY=/usr/libexec/PlistBuddy\nif [ -x $SVNVERSION -a -x $PLISTBUDDY ]; then\n\tREV=`$SVNVERSION -nc | sed 's/^[^:]*://'`\n\t$PLISTBUDDY -c \"Set :CFBundleVersion $REV\" \"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}\"\nfi";
    227241                };
    228242/* End PBXShellScriptBuildPhase section */
Note: See TracChangeset for help on using the changeset viewer.