diff options
author | Brian C. Lane <bcl@redhat.com> | 2021-01-27 17:07:28 -0800 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2021-01-27 17:07:28 -0800 |
commit | 040003570a9db560a405693433363612bb3b6859 (patch) | |
tree | 7194dc7fa8b38876e516a852ed1f09232b1e9fcc /bootstrap | |
parent | cd3cea38c195a54a73f411cec8b5e5521ac13033 (diff) | |
download | parted-040003570a9db560a405693433363612bb3b6859.tar.gz |
maint: Update bootstrap script from latest gnulib
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -1,6 +1,6 @@ #! /bin/sh # Print a version string. -scriptversion=2020-11-18.17; # UTC +scriptversion=2021-01-10.00; # UTC # Bootstrap this package from checked-out sources. @@ -47,7 +47,7 @@ PERL="${PERL-perl}" me=$0 -default_gnulib_url=git://git.sv.gnu.org/gnulib +default_gnulib_url=https://git.savannah.gnu.org/git/gnulib.git usage() { cat <<EOF @@ -184,7 +184,7 @@ po_download_command_format=\ https://translationproject.org/latest/%s/" # Prefer a non-empty tarname (4th argument of AC_INIT if given), else -# fall back to the package name (1st argument with munging) +# fall back to the package name (1st argument with munging). extract_package_name=' /^AC_INIT(\[*/{ s/// @@ -201,8 +201,11 @@ extract_package_name=' p } ' -package=$(sed -n "$extract_package_name" configure.ac) \ - || die 'cannot find package name in configure.ac' +package=$(${AUTOCONF:-autoconf} --trace AC_INIT:\$4 configure.ac 2>/dev/null) +if test -z "$package"; then + package=$(sed -n "$extract_package_name" configure.ac) \ + || die 'cannot find package name in configure.ac' +fi gnulib_name=lib$package build_aux=build-aux |