Skip to content

Loading…

tweaked script to use the version of git from the currently selected xcode #3

Closed
wants to merge 1 commit into from

2 participants

@samdeane

Stacksmith built for me with this minor tweak...

@uliwitness
Owner

Thanks, I've modified your code slightly and applied it to the build_docs scripts in some of the targets as well.

@uliwitness uliwitness closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 6 additions and 2 deletions.
  1. +6 −2 make_git_version_header.sh
View
8 make_git_version_header.sh
@@ -40,8 +40,12 @@
echo -n "note: Finding revision in "
pwd
-revnum=`/usr/local/git/bin/git rev-list HEAD | /usr/bin/wc -l | tr -d ' '`
-fullrevnum=`/usr/local/git/bin/git rev-parse HEAD`
+
+xcode=`xcode-select --print-path`
+git="$xcode/usr/bin/git"
+
+revnum=`$git rev-list HEAD | /usr/bin/wc -l | tr -d ' '`
+fullrevnum=`$git rev-parse HEAD`
builddate=`date "+%Y-%m-%d"`
# Now write the constant declaration to the file:
Something went wrong with that request. Please try again.