Shorten the snapshot version string by removing the "g".

* build-aux/git-version-gen: Remove git-describe's "g" that would
always precede the abbreviated SHA1.  Suggestion from Dmitry V. Levin.
This commit is contained in:
Jim Meyering committed 2007-08-30 23:13:12 +02:00
1 parent 624d125cee
commit 42a4957361
2 files changed
+6 -1

No files matched your search

+4
View File
@@ -1,5 +1,9 @@
2007-08-30 Jim Meyering <jim@meyering.net>
Shorten the snapshot version string by removing the "g".
* build-aux/git-version-gen: Remove git-describe's "g" that would
always precede the abbreviated SHA1. Suggestion from Dmitry V. Levin.
Perform the s,rm,/bin/rm, fix-up properly. No more kludge.
* Makefile.am (EXTRA_DIST): Remove .kludge-stamp.
(.kludge-stamp): Remove rule. Instead, ...
+2 -1
View File
@@ -38,7 +38,8 @@ elif test -d .git \
*) (exit 1) ;;
esac
then
v=`echo "$v" | sed 's/-/./g'`;
# Remove the "g" in git-describe's output string; change each - to a '.'
v=`echo "$v" | sed 's/\(.*\)-g/\1-/;s/-/./g'`;
else
v=$default_version
fi