-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- No more `(null)` output when building against the static lib - Share a common script between targets for copying the git SHA into the Info.plist
- Loading branch information
Brian Croom
committed
Sep 14, 2015
1 parent
37b7c53
commit 04e62b4
Showing
3 changed files
with
35 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/ruby | ||
|
||
key = "CDRBuildVersionSHA" | ||
ver = `git rev-parse HEAD`.strip | ||
puts "Git commit SHA is #{ver}" | ||
path = "#{ENV['BUILT_PRODUCTS_DIR']}/#{ENV['INFOPLIST_PATH']}" | ||
puts "Updating #{path}" | ||
`/usr/libexec/PlistBuddy -c "Add :#{key} string #{ver}" "#{path}"` |