summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorBrian C. Lane <bcl@redhat.com>2021-01-27 17:07:28 -0800
committerBrian C. Lane <bcl@redhat.com>2021-01-27 17:07:28 -0800
commit040003570a9db560a405693433363612bb3b6859 (patch)
tree7194dc7fa8b38876e516a852ed1f09232b1e9fcc /bootstrap
parentcd3cea38c195a54a73f411cec8b5e5521ac13033 (diff)
downloadparted-040003570a9db560a405693433363612bb3b6859.tar.gz
maint: Update bootstrap script from latest gnulib
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap13
1 files changed, 8 insertions, 5 deletions
diff --git a/bootstrap b/bootstrap
index 7523f65..c17a36f 100755
--- a/bootstrap
+++ b/bootstrap
@@ -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