Skip to content

Commit

Permalink
Merge pull request #37 from mattthias/support_RELEASE_in_getversion
Browse files Browse the repository at this point in the history
Use file RELEASE as source for the version during build
  • Loading branch information
steveschnepp authored Oct 30, 2017
2 parents 506ef5b + cff98da commit 4a7f4f7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions getversion
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/bin/sh
# Revert to a *very* simple scheme
#
# Generate a version string for use when building.
#
# * If RELEASE exists, and is non-empty, use the contents of that file.
# This is in case we're building from a tarball.

git describe --always
if [ -s "RELEASE" ]; then
cat RELEASE
else
git describe --always
fi

0 comments on commit 4a7f4f7

Please sign in to comment.