From 1869a99c20d97931010559d20aedaef0e3225b24 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 26 Nov 2010 14:17:55 -0800 Subject: Use sed to build version.sh, preferring '+#.%' to '.#.%'. --- version.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/version.sh b/version.sh index 2508390..1cbbfbf 100755 --- a/version.sh +++ b/version.sh @@ -1,5 +1,2 @@ #!/bin/bash -ver=$(git describe --tags --dirty="+") -ver=${ver#v} -ver=${ver//-/.} -echo "${ver}" +git describe --tags --dirty="+" --match="v*" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@@' -- cgit v1.2.3