mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-23 11:13:03 +00:00
gnulib: update
This commit is contained in:
52
bootstrap
52
bootstrap
@@ -1,10 +1,10 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Print a version string.
|
# Print a version string.
|
||||||
scriptversion=2013-08-15.22; # UTC
|
scriptversion=2014-12-08.12; # UTC
|
||||||
|
|
||||||
# Bootstrap this package from checked-out sources.
|
# Bootstrap this package from checked-out sources.
|
||||||
|
|
||||||
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
|
# Copyright (C) 2003-2014 Free Software Foundation, Inc.
|
||||||
|
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -42,6 +42,9 @@ export LC_ALL
|
|||||||
|
|
||||||
local_gl_dir=gl
|
local_gl_dir=gl
|
||||||
|
|
||||||
|
# Honour $PERL, but work even if there is none
|
||||||
|
PERL="${PERL-perl}"
|
||||||
|
|
||||||
me=$0
|
me=$0
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
@@ -210,7 +213,17 @@ bootstrap_sync=false
|
|||||||
use_git=true
|
use_git=true
|
||||||
|
|
||||||
check_exists() {
|
check_exists() {
|
||||||
($1 --version </dev/null) >/dev/null 2>&1
|
if test "$1" = "--verbose"; then
|
||||||
|
($2 --version </dev/null) >/dev/null 2>&1
|
||||||
|
if test $? -ge 126; then
|
||||||
|
# If not found, run with diagnostics as one may be
|
||||||
|
# presented with env variables to set to find the right version
|
||||||
|
($2 --version </dev/null)
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
($1 --version </dev/null) >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
test $? -lt 126
|
test $? -lt 126
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -408,7 +421,7 @@ sort_ver() { # sort -V is not generally available
|
|||||||
get_version() {
|
get_version() {
|
||||||
app=$1
|
app=$1
|
||||||
|
|
||||||
$app --version >/dev/null 2>&1 || return 1
|
$app --version >/dev/null 2>&1 || { $app --version; return 1; }
|
||||||
|
|
||||||
$app --version 2>&1 |
|
$app --version 2>&1 |
|
||||||
sed -n '# Move version to start of line.
|
sed -n '# Move version to start of line.
|
||||||
@@ -446,6 +459,7 @@ check_versions() {
|
|||||||
test "$appvar" = TAR && appvar=AMTAR
|
test "$appvar" = TAR && appvar=AMTAR
|
||||||
case $appvar in
|
case $appvar in
|
||||||
GZIP) ;; # Do not use $GZIP: it contains gzip options.
|
GZIP) ;; # Do not use $GZIP: it contains gzip options.
|
||||||
|
PERL::*) ;; # Keep perl modules as-is
|
||||||
*) eval "app=\${$appvar-$app}" ;;
|
*) eval "app=\${$appvar-$app}" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@@ -463,11 +477,22 @@ check_versions() {
|
|||||||
ret=1
|
ret=1
|
||||||
continue
|
continue
|
||||||
} ;;
|
} ;;
|
||||||
|
# Another check is for perl modules. These can be written as
|
||||||
|
# e.g. perl::XML::XPath in case of XML::XPath module, etc.
|
||||||
|
perl::*)
|
||||||
|
# Extract module name
|
||||||
|
app="${app#perl::}"
|
||||||
|
if ! $PERL -m"$app" -e 'exit 0' >/dev/null 2>&1; then
|
||||||
|
warn_ "Error: perl module '$app' not found"
|
||||||
|
ret=1
|
||||||
|
fi
|
||||||
|
continue
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
if [ "$req_ver" = "-" ]; then
|
if [ "$req_ver" = "-" ]; then
|
||||||
# Merely require app to exist; not all prereq apps are well-behaved
|
# Merely require app to exist; not all prereq apps are well-behaved
|
||||||
# so we have to rely on $? rather than get_version.
|
# so we have to rely on $? rather than get_version.
|
||||||
if ! check_exists $app; then
|
if ! check_exists --verbose $app; then
|
||||||
warn_ "Error: '$app' not found"
|
warn_ "Error: '$app' not found"
|
||||||
ret=1
|
ret=1
|
||||||
fi
|
fi
|
||||||
@@ -551,6 +576,14 @@ if ! printf "$buildreq" | check_versions; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Warn the user if autom4te appears to be broken; this causes known
|
||||||
|
# issues with at least gettext 0.18.3.
|
||||||
|
probe=$(echo 'm4_quote([hi])' | autom4te -l M4sugar -t 'm4_quote:$%' -)
|
||||||
|
if test "x$probe" != xhi; then
|
||||||
|
warn_ "WARNING: your autom4te wrapper eats stdin;"
|
||||||
|
warn_ "if bootstrap fails, consider upgrading your autotools"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "$0: Bootstrapping from checked-out $package sources..."
|
echo "$0: Bootstrapping from checked-out $package sources..."
|
||||||
|
|
||||||
# See if we can use gnulib's git-merge-changelog merge driver.
|
# See if we can use gnulib's git-merge-changelog merge driver.
|
||||||
@@ -590,8 +623,8 @@ case ${GNULIB_SRCDIR--} in
|
|||||||
# Note that $use_git is necessarily true in this case.
|
# Note that $use_git is necessarily true in this case.
|
||||||
if git_modules_config submodule.gnulib.url >/dev/null; then
|
if git_modules_config submodule.gnulib.url >/dev/null; then
|
||||||
echo "$0: getting gnulib files..."
|
echo "$0: getting gnulib files..."
|
||||||
git submodule init || exit $?
|
git submodule init -- "$gnulib_path" || exit $?
|
||||||
git submodule update || exit $?
|
git submodule update -- "$gnulib_path" || exit $?
|
||||||
|
|
||||||
elif [ ! -d "$gnulib_path" ]; then
|
elif [ ! -d "$gnulib_path" ]; then
|
||||||
echo "$0: getting gnulib files..."
|
echo "$0: getting gnulib files..."
|
||||||
@@ -620,13 +653,14 @@ case ${GNULIB_SRCDIR--} in
|
|||||||
# This fallback allows at least git 1.5.5.
|
# This fallback allows at least git 1.5.5.
|
||||||
if test -f "$gnulib_path"/gnulib-tool; then
|
if test -f "$gnulib_path"/gnulib-tool; then
|
||||||
# Since file already exists, assume submodule init already complete.
|
# Since file already exists, assume submodule init already complete.
|
||||||
git submodule update || exit $?
|
git submodule update -- "$gnulib_path" || exit $?
|
||||||
else
|
else
|
||||||
# Older git can't clone into an empty directory.
|
# Older git can't clone into an empty directory.
|
||||||
rmdir "$gnulib_path" 2>/dev/null
|
rmdir "$gnulib_path" 2>/dev/null
|
||||||
git clone --reference "$GNULIB_SRCDIR" \
|
git clone --reference "$GNULIB_SRCDIR" \
|
||||||
"$(git_modules_config submodule.gnulib.url)" "$gnulib_path" \
|
"$(git_modules_config submodule.gnulib.url)" "$gnulib_path" \
|
||||||
&& git submodule init && git submodule update \
|
&& git submodule init -- "$gnulib_path" \
|
||||||
|
&& git submodule update -- "$gnulib_path" \
|
||||||
|| exit $?
|
|| exit $?
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
2
gnulib
2
gnulib
Submodule gnulib updated: 74540d44dc...7177237ead
2
lib/.gitignore
vendored
2
lib/.gitignore
vendored
@@ -274,3 +274,5 @@
|
|||||||
/wctype-h.c
|
/wctype-h.c
|
||||||
/lstat.c
|
/lstat.c
|
||||||
/unlink.c
|
/unlink.c
|
||||||
|
/gettimeofday.c
|
||||||
|
/sys_time.in.h
|
||||||
|
|||||||
3
m4/.gitignore
vendored
3
m4/.gitignore
vendored
@@ -183,3 +183,6 @@
|
|||||||
/absolute-header.m4
|
/absolute-header.m4
|
||||||
/lstat.m4
|
/lstat.m4
|
||||||
/unlink.m4
|
/unlink.m4
|
||||||
|
/gettimeofday.m4
|
||||||
|
/obstack.m4
|
||||||
|
/sys_time_h.m4
|
||||||
|
|||||||
Reference in New Issue
Block a user