mirror of
https://github.com/coreutils/coreutils.git
synced 2024-11-28 12:35:36 +08:00
Don't change '-'s to '.'s in the string from git-describe.
* build-aux/git-version-gen: Leave '-'s in the string from git-describe. Otherwise, s/-/./g would make it too hard to distinguish the base version number from the appended .DD suffixes. 2007-09-03 Jim Meyering <jim@meyering.net>
This commit is contained in:
parent
698091be0e
commit
d0bd493a2a
@ -1,3 +1,10 @@
|
||||
2007-09-03 Jim Meyering <jim@meyering.net>
|
||||
|
||||
Don't change '-'s to '.'s in the string from git-describe.
|
||||
* build-aux/git-version-gen: Leave '-'s in the string from git-describe.
|
||||
Otherwise, s/-/./g would make it too hard to distinguish the base
|
||||
version number from the appended .DD suffixes.
|
||||
|
||||
2007-09-03 Jim Meyering <jim@meyering.net>
|
||||
|
||||
* README-hacking: Require rsync, rather than wget.
|
||||
|
@ -38,8 +38,8 @@ elif test -d .git \
|
||||
*) (exit 1) ;;
|
||||
esac
|
||||
then
|
||||
# Remove the "g" in git-describe's output string; change each - to a '.'
|
||||
v=`echo "$v" | sed 's/\(.*\)-g/\1-/;s/-/./g'`;
|
||||
# Remove the "g" in git-describe's output string.
|
||||
v=`echo "$v" | sed 's/\(.*\)-g/\1-/'`;
|
||||
else
|
||||
v=$default_version
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user