Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2016-11-15 12:04:36 -0500
committerMike Gerwitz <gerwitzm@lovullo.com>2016-11-15 12:26:38 -0500
commit9669b80536737dd7068041e3c52b94ce1f8428a7 (patch)
tree36c0e26754557242281c42d1d53b65944bc7ee9f
parent3433ff8d5a02b21527c8a00664f5b275ec495244 (diff)
downloadtame-9669b80536737dd7068041e3c52b94ce1f8428a7.tar.gz
tame-9669b80536737dd7068041e3c52b94ce1f8428a7.tar.bz2
tame-9669b80536737dd7068041e3c52b94ce1f8428a7.zip
Adjust tools/vergen for our tagging scheme
We use a `v' prefix. * tools/vergen (version): Recognize `v'-prefixed tags.
-rwxr-xr-xtools/vergen9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/vergen b/tools/vergen
index 0a2c45f..440649b 100755
--- a/tools/vergen
+++ b/tools/vergen
@@ -17,6 +17,9 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+# This script has been modified slightly by LoVullo Associates to support
+# TAME's versioning scheme (`v'-prefixed).
##
# for distributions
@@ -29,7 +32,11 @@ git rev-parse --show-toplevel >/dev/null 2>&1 || {
echo 'fatal: git repository is not available'
}
-version="$( git describe --match='[0-9]\.*' --abbrev=7 HEAD 2>/dev/null )"
+version=$(
+ git describe --match='v[0-9]\.*' --abbrev=7 HEAD 2>/dev/null \
+ | sed 's/^v//'
+)
+
git update-index -q --refresh
test -z "$( git diff-index --name-only HEAD)" || version="$version-dirty"