提交 ba22ac05 编写于 作者: E Eric Blake

build: update to latest gnulib

In particular, pull in gnulib's fix for the broken SIZE_MAX on s390.

* .gnulib: Update to latest.
* bootstrap: Resync to upstream.
Signed-off-by: NEric Blake <eblake@redhat.com>
上级 85b07210
.gnulib @ 5ddd9d71
Subproject commit e89b4a7aefce9cb02963920712ba7cdd13641644
Subproject commit 5ddd9d713d58d6c6d10494a28ceee6988d20ff98
#! /bin/sh
# Print a version string.
scriptversion=2016-01-24.06; # UTC
scriptversion=2016-11-03.18; # UTC
# Bootstrap this package from checked-out sources.
......@@ -418,28 +418,30 @@ sort_ver() { # sort -V is not generally available
done
}
get_version() {
app=$1
get_version_sed='
# Move version to start of line.
s/.*[v ]\([0-9]\)/\1/
$app --version >/dev/null 2>&1 || { $app --version; return 1; }
# Skip lines that do not start with version.
/^[0-9]/!d
$app --version 2>&1 |
sed -n '# Move version to start of line.
s/.*[v ]\([0-9]\)/\1/
# Remove characters after the version.
s/[^.a-z0-9-].*//
# Skip lines that do not start with version.
/^[0-9]/!d
# The first component must be digits only.
s/^\([0-9]*\)[a-z-].*/\1/
# Remove characters after the version.
s/[^.a-z0-9-].*//
#the following essentially does s/5.005/5.5/
s/\.0*\([1-9]\)/.\1/g
p
q'
# The first component must be digits only.
s/^\([0-9]*\)[a-z-].*/\1/
get_version() {
app=$1
$app --version >/dev/null 2>&1 || { $app --version; return 1; }
#the following essentially does s/5.005/5.5/
s/\.0*\([1-9]\)/.\1/g
p
q'
$app --version 2>&1 | sed -n "$get_version_sed"
}
check_versions() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册