summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap45
1 files changed, 36 insertions, 9 deletions
diff --git a/bootstrap b/bootstrap
index f55bedc..4596413 100755
--- a/bootstrap
+++ b/bootstrap
@@ -230,7 +230,7 @@ vc_ignore=
# Source required external libraries:
# Set a version string for this script.
-scriptversion=2014-01-03.01; # UTC
+scriptversion=2015-01-20.17; # UTC
# General shell script boiler plate, and helper functions.
# Written by Gary V. Vaughan, 2004
@@ -358,7 +358,7 @@ func_path_progs ()
_G_path_prog_max=0
_G_path_prog_found=false
- _G_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+ _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
for _G_dir in $_G_PATH; do
IFS=$_G_save_IFS
test -z "$_G_dir" && _G_dir=.
@@ -2155,7 +2155,7 @@ test -z "$progpath" && . `echo "$0" |${SED-sed} 's|[^/]*$||'`/funclib.sh
test extract-trace = "$progname" && . `echo "$0" |${SED-sed} 's|[^/]*$||'`/options-parser
# Set a version string.
-scriptversion=2014-12-03.16; # UTC
+scriptversion=2015-01-20.17; # UTC
# 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
@@ -2267,11 +2267,12 @@ func_tool_version_number ()
{
$debug_cmd
- _G_verout=`func_tool_version_output "$@" |sed 1q`
+ _G_verout=`func_tool_version_output "$@"`
_G_status=$?
# A version number starts with a digit following a space on the first
# line of output from `--version`.
+ _G_verout=`echo "$_G_verout" |sed 1q`
if test -n "$_G_verout"; then
_G_vernum=`expr "$_G_verout" : '.* \([0-9][^ ]*\)'`
fi
@@ -2308,7 +2309,7 @@ func_find_tool ()
for _G_prog
do
_G_find_tool_save_IFS=$IFS
- IFS=:
+ IFS=${PATH_SEPARATOR-:}
for _G_dir in $PATH; do
IFS=$_G_find_tool_save_IFS
_G_progpath=$_G_dir/$_G_prog
@@ -2620,7 +2621,7 @@ test extract-trace = "$progname" && func_main "$@"
# End:
# Set a version string for *this* script.
-scriptversion=2014-11-04.13; # UTC
+scriptversion=2015-01-20.17; # UTC
## ------------------- ##
@@ -2746,10 +2747,13 @@ func_reconfigure ()
$require_automake_options
- # Automake (without 'foreign' option) requires that README exists.
+ # Automake (without 'foreign' option) requires that NEWS & README exist.
case " $automake_options " in
" foreign ") ;;
- *) func_ensure_README ;;
+ *)
+ func_ensure_NEWS
+ func_ensure_README
+ ;;
esac
# Ensure ChangeLog presence.
@@ -3078,6 +3082,29 @@ EOT
}
+# func_ensure_NEWS
+# ----------------
+# Without AM_INIT_AUTOMAKE([foreign]), automake will not run to
+# completion with no NEWS file, even though NEWS.md or NEWS.txt
+# is often preferable.
+func_ensure_NEWS ()
+{
+ $debug_cmd
+
+ test -f NEWS || {
+ _G_NEWS=
+ for _G_news in NEWS.txt NEWS.md NEWS.rst; do
+ test -f "$_G_news" && break
+ done
+
+ test -f "$_G_news" && $LN_S $_G_news NEWS
+ func_verbose "$LN_S $_G_news NEWS"
+ }
+
+ return 0
+}
+
+
# func_ensure_README
# ------------------
# Without AM_INIT_AUTOMAKE([foreign]), automake will not run to
@@ -4812,7 +4839,7 @@ func_check_tool ()
;;
*)
save_IFS=$IFS
- IFS=:
+ IFS=${PATH_SEPARATOR-:}
for _G_check_tool_path in $PATH; do
IFS=$save_IFS
if test -x "$_G_check_tool_path/$1"; then