Skip to content

Commit 134684e

Browse files
author
paulwilliam
committed
Added code that if uncommented will only run the script when building a release. This saves time when doing debug builds.
1 parent 128786d commit 134684e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: git-version.sh

+7
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
# based on the git script by Marcus S. Zarra and Matt Long which was
1414
# based on the Subversion script by Axel Andersson
1515

16+
# Uncomment to only run when doing a Release build
17+
# if ENV["BUILD_STYLE"] != "Release"
18+
# puts "Not a Release build."
19+
# exit
20+
# end
21+
22+
1623
gitnum = `/usr/bin/env git describe --long`.chomp.split("-")
1724

1825
version = gitnum[0] + " (b#{gitnum[1]} #{gitnum[2]})"

0 commit comments

Comments
 (0)