summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-01-12 09:05:54 +0100
committerAkim Demaille <akim.demaille@gmail.com>2019-01-12 09:38:57 +0100
commitc314b5509f984b7e9a57a8684d146fd7bc7b0cff (patch)
treebe3bf4e5126a173d7fae32ac00dbe4bdc9413041 /bootstrap
parentf0d7f71a64068f2a0eabcb6b27e9b9a4e19b1af6 (diff)
downloadbison-c314b5509f984b7e9a57a8684d146fd7bc7b0cff.tar.gz
gnulib: update
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap14
1 files changed, 12 insertions, 2 deletions
diff --git a/bootstrap b/bootstrap
index 5264d9f1..5b08e7e2 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1,10 +1,10 @@
#! /bin/sh
# Print a version string.
-scriptversion=2018-10-13.05; # UTC
+scriptversion=2019-01-04.17; # UTC
# Bootstrap this package from checked-out sources.
-# Copyright (C) 2003-2018 Free Software Foundation, Inc.
+# Copyright (C) 2003-2019 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -963,6 +963,16 @@ fi
bootstrap_post_import_hook \
|| die "bootstrap_post_import_hook failed"
+# Don't proceed if there are uninitialized submodules. In particular,
+# the next step will remove dangling links, which might be links into
+# uninitialized submodules.
+#
+# Uninitialized submodules are listed with an initial dash.
+if $use_git && git submodule | grep '^-' >/dev/null; then
+ die "some git submodules are not initialized. " \
+ "Run 'git submodule init' and bootstrap again."
+fi
+
# Remove any dangling symlink matching "*.m4" or "*.[ch]" in some
# gnulib-populated directories. Such .m4 files would cause aclocal to fail.
# The following requires GNU find 4.2.3 or newer. Considering the usual