From 41e76fd2ea3ef03c09bccdc51f62c38439eafb0d Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 6 May 2012 00:02:48 -0400 Subject: [PATCH] curver comment tag will now ignore all but version tags - Was having a problem with the CI system tags showing up as the recent version :x --- tools/page-parse | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/page-parse b/tools/page-parse index c73e554..1c81cf2 100755 --- a/tools/page-parse +++ b/tools/page-parse @@ -18,7 +18,11 @@ # along with this program. If not, see . ## -curver="$( git tag -l | tail -n1 )" +# grab most recent version tag +curver="$( git tag -l \ + | grep '^[0-9]\+.[0-9]\+.[0-9]\+$' \ + | tail -n1 +)" # TODO: Both sed and gawk are unnecessary; it was just the most convenient # solution