diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-11-26 14:17:55 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-11-26 14:17:55 -0800 |
commit | 1869a99c20d97931010559d20aedaef0e3225b24 (patch) | |
tree | 43024174cecab57cb331ea81a5d225f6235b268f /version.sh | |
parent | f4db946ef5292a34e214a4eb56b32864ce4d1a84 (diff) |
Use sed to build version.sh, preferring '+#.%' to '.#.%'.
Diffstat (limited to 'version.sh')
-rwxr-xr-x | version.sh | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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@@' |