SHARE
TWEET

Untitled

a guest Jul 17th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. echo "Updating Build"
  2.  
  3. REV=`svnversion -nc | /usr/bin/sed -e 's/^[^:]*://;s/[A-Za-z]//'`
  4. echo "Set :CFBundleVersion $REV" "${TARGET_BUILD_DIR}"/${INFOPLIST_PATH}
  5. /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $REV" "${TARGET_BUILD_DIR}"/${INFOPLIST_PATH}
  6.  
  7. BUNDLE_REV=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${TARGET_BUILD_DIR}"/${INFOPLIST_PATH})
  8. SETTINGS_BUNDLE_PATH="${CODESIGNING_FOLDER_PATH}/Settings.bundle/Root.plist"
  9. echo "Set PreferenceSpecifiers:1:DefaultValue $BUNDLE_REV" "$SETTINGS_BUNDLE_PATH"
  10. /usr/libexec/PlistBuddy -c "Set PreferenceSpecifiers:1:DefaultValue $BUNDLE_REV" "$SETTINGS_BUNDLE_PATH"
RAW Paste Data
Top