Skip to content

Commit

Permalink
Count all commits for build number
Browse files Browse the repository at this point in the history
… not just for the current minor version. This prevents clashes for
x.y.0 versions that result in duplicate builds.
  • Loading branch information
koraktor committed Feb 2, 2015
1 parent ba29aea commit 5ee545c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Suitcase.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "gitDescribe=$(git describe --always)\n/usr/libexec/PlistBuddy -c \"Delete CFBundleShortVersionString\" Suitcase/Suitcase-Info.plist\n/usr/libexec/PlistBuddy -c \"Add CFBundleShortVersionString string $gitDescribe\" Suitcase/Suitcase-Info.plist\ngitLastTag=$(git describe --abbrev=0 | cut -d. -f1-2)\ngitCommitCount=$(git rev-list --count $gitLastTag.0..HEAD)\n/usr/libexec/PlistBuddy -c \"Delete CFBundleVersion\" Suitcase/Suitcase-Info.plist\n/usr/libexec/PlistBuddy -c \"Add CFBundleVersion string $gitLastTag.$gitCommitCount\" Suitcase/Suitcase-Info.plist";
shellScript = "gitDescribe=$(git describe --always)\n/usr/libexec/PlistBuddy -c \"Delete CFBundleShortVersionString\" Suitcase/Suitcase-Info.plist\n/usr/libexec/PlistBuddy -c \"Add CFBundleShortVersionString string $gitDescribe\" Suitcase/Suitcase-Info.plist\ngitLastTag=$(git describe --abbrev=0 | cut -d. -f1-2)\ngitCommitCount=$(git rev-list --count HEAD)\n/usr/libexec/PlistBuddy -c \"Delete CFBundleVersion\" Suitcase/Suitcase-Info.plist\n/usr/libexec/PlistBuddy -c \"Add CFBundleVersion string $gitLastTag.$gitCommitCount\" Suitcase/Suitcase-Info.plist";
};
029B08F5159262FF00BD6271 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
Expand Down

0 comments on commit 5ee545c

Please sign in to comment.