mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
Change the first '-' to '.' in the snapshot version string,
e.g., 6.9-377-08144 -> 6.9.377-08144 * build-aux/git-version-gen: ... and add comments.
This commit is contained in:
1 parent
0814422a7d
commit
8beb69b148
2 files changed
+7
-2
No files matched your search
@@ -1,5 +1,9 @@
|
||||
2007-11-03 Jim Meyering <meyering@redhat.com>
|
||||
|
||||
Change the first '-' to '.' in the snapshot version string,
|
||||
e.g., 6.9-377-08144 -> 6.9.377-08144
|
||||
* build-aux/git-version-gen: ... and add comments.
|
||||
|
||||
seq: add another test for the %% bug.
|
||||
* tests/misc/seq (fmt-c): Test the other fixed case, too.
|
||||
|
||||
|
||||
@@ -42,8 +42,9 @@ elif test -d .git \
|
||||
*) (exit 1) ;;
|
||||
esac
|
||||
then
|
||||
# Remove the "g" in git-describe's output string.
|
||||
v=`echo "$v" | sed 's/\(.*\)-g/\1-/'`;
|
||||
# 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/-/./;s/\(.*\)-g/\1-/'`;
|
||||
else
|
||||
v=UNKNOWN
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user