]> granicus.if.org Git - strace/blobdiff - git-version-gen
Update NEWS
[strace] / git-version-gen
index 3de536516760330c8eb7f92569e7bc2a53b5b717..28e9109f69b5b621eb5aeab2a877f9dcf4287fb7 100755 (executable)
@@ -186,7 +186,8 @@ then
 
     # Change the first '-' to a '.', so version-comparing tools work properly.
     # Remove the "g" in git describe's output string, to save a byte.
-    v=`echo "$v" | sed 's/-/.0./;s/\(.*\)-g/\1-/'`;
+    # Change remaining '-' to '.', so version conforms to policies.
+    v=`echo "$v" | sed 's/-/.0./;s/\(.*\)-g/\1-/;s/-/./g'`;
     v_from_git=1
 elif test "x$fallback" = x || git --version >/dev/null 2>&1; then
     v=UNKNOWN