diff options
author | Pádraig Brady <P@draigBrady.com> | 2016-11-05 17:14:41 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2016-11-07 13:17:19 +0000 |
commit | 7ba9355d0aec01a005164b02f7bdc8e67c430315 (patch) | |
tree | 298828eb93d7f3fb44aed6bbd0166ad66e5647d0 /bootstrap | |
parent | 5161effd835167c113037aaec2e874d76f566c2c (diff) | |
download | coreutils-7ba9355d0aec01a005164b02f7bdc8e67c430315.tar.xz |
all: update gnulib submodule to latest
Incorporating these coreutils specific changes:
backupfile: initialize default suffix within the implementation
strftime,strptime: support %q to represent the quarter
Also sync these copies with gnulib:
* bootstrap: Now supports AIX.
* gnulib: Update to the latest.
* tests/init.sh: dash(1) is now disabled.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -1,6 +1,6 @@ #! /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,13 +418,8 @@ sort_ver() { # sort -V is not generally available done } -get_version() { - app=$1 - - $app --version >/dev/null 2>&1 || { $app --version; return 1; } - - $app --version 2>&1 | - sed -n '# Move version to start of line. +get_version_sed=' +# Move version to start of line. s/.*[v ]\([0-9]\)/\1/ # Skip lines that do not start with version. @@ -440,6 +435,13 @@ get_version() { s/\.0*\([1-9]\)/.\1/g p q' + +get_version() { + app=$1 + + $app --version >/dev/null 2>&1 || { $app --version; return 1; } + + $app --version 2>&1 | sed -n "$get_version_sed" } check_versions() { |