Skip to content

Commit

Permalink
Merge pull request #1024 from vslavik/faster-noop-builds
Browse files Browse the repository at this point in the history
Don't touch Info.plist unless git version changes
  • Loading branch information
kornelski committed Feb 5, 2017
2 parents 6e51231 + 1f98f9e commit 016dad1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Configurations/set-git-version-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,11 @@ fi

# and use it to set the CFBundleShortVersionString value
export PATH="$PATH:/usr/libexec"
PlistBuddy -c "Set :CFBundleShortVersionString '$version'" \
"$BUILT_PRODUCTS_DIR/$INFOPLIST_PATH"

if [ -f "$BUILT_PRODUCTS_DIR/$INFOPLIST_PATH" ] ; then
oldversion=$(PlistBuddy -c "Print :CFBundleShortVersionString" "$BUILT_PRODUCTS_DIR/$INFOPLIST_PATH")
fi
if [ "$version" != "$oldversion" ] ; then
PlistBuddy -c "Set :CFBundleShortVersionString '$version'" \
"$BUILT_PRODUCTS_DIR/$INFOPLIST_PATH"
fi

0 comments on commit 016dad1

Please sign in to comment.