missing | missing | |||
---|---|---|---|---|
#! /bin/sh | #! /bin/sh | |||
# Common wrapper for a few potentially missing GNU programs. | # Common wrapper for a few potentially missing GNU programs. | |||
scriptversion=2018-03-07.03; # UTC | scriptversion=2013-10-28.13; # UTC | |||
# Copyright (C) 1996-2021 Free Software Foundation, Inc. | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |||
# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | |||
# 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 | |||
# the Free Software Foundation; either version 2, or (at your option) | # the Free Software Foundation; either version 2, or (at your option) | |||
# any later version. | # any later version. | |||
# This program is distributed in the hope that it will be useful, | # This program is distributed in the hope that it will be useful, | |||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
# GNU General Public License for more details. | # GNU General Public License for more details. | |||
# You should have received a copy of the GNU General Public License | # You should have received a copy of the GNU General Public License | |||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
# As a special exception to the GNU General Public License, if you | # As a special exception to the GNU General Public License, if you | |||
# distribute this file as part of a program that contains a | # distribute this file as part of a program that contains a | |||
# configuration script generated by Autoconf, you may include it under | # configuration script generated by Autoconf, you may include it under | |||
# the same distribution terms that you use for the rest of that program. | # the same distribution terms that you use for the rest of that program. | |||
if test $# -eq 0; then | if test $# -eq 0; then | |||
echo 1>&2 "Try '$0 --help' for more information" | echo 1>&2 "Try '$0 --help' for more information" | |||
exit 1 | exit 1 | |||
fi | fi | |||
skipping to change at line 104 | skipping to change at line 104 | |||
if test $st -eq 63; then | if test $st -eq 63; then | |||
msg="probably too old" | msg="probably too old" | |||
elif test $st -eq 127; then | elif test $st -eq 127; then | |||
# Program was missing. | # Program was missing. | |||
msg="missing on your system" | msg="missing on your system" | |||
else | else | |||
# Program was found and executed, but failed. Give up. | # Program was found and executed, but failed. Give up. | |||
exit $st | exit $st | |||
fi | fi | |||
perl_URL=https://www.perl.org/ | perl_URL=http://www.perl.org/ | |||
flex_URL=https://github.com/westes/flex | flex_URL=http://flex.sourceforge.net/ | |||
gnu_software_URL=https://www.gnu.org/software | gnu_software_URL=http://www.gnu.org/software | |||
program_details () | program_details () | |||
{ | { | |||
case $1 in | case $1 in | |||
aclocal|automake) | aclocal|automake) | |||
echo "The '$1' program is part of the GNU Automake package:" | echo "The '$1' program is part of the GNU Automake package:" | |||
echo "<$gnu_software_URL/automake>" | echo "<$gnu_software_URL/automake>" | |||
echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run: " | echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run: " | |||
echo "<$gnu_software_URL/autoconf>" | echo "<$gnu_software_URL/autoconf>" | |||
echo "<$gnu_software_URL/m4/>" | echo "<$gnu_software_URL/m4/>" | |||
skipping to change at line 210 | skipping to change at line 210 | |||
} | } | |||
give_advice "$1" | sed -e '1s/^/WARNING: /' \ | give_advice "$1" | sed -e '1s/^/WARNING: /' \ | |||
-e '2,$s/^/ /' >&2 | -e '2,$s/^/ /' >&2 | |||
# Propagate the correct exit status (expected to be 127 for a program | # Propagate the correct exit status (expected to be 127 for a program | |||
# not found, 63 for a program that failed due to version mismatch). | # not found, 63 for a program that failed due to version mismatch). | |||
exit $st | exit $st | |||
# Local variables: | # Local variables: | |||
# eval: (add-hook 'before-save-hook 'time-stamp) | # eval: (add-hook 'write-file-hooks 'time-stamp) | |||
# time-stamp-start: "scriptversion=" | # time-stamp-start: "scriptversion=" | |||
# time-stamp-format: "%:y-%02m-%02d.%02H" | # time-stamp-format: "%:y-%02m-%02d.%02H" | |||
# time-stamp-time-zone: "UTC0" | # time-stamp-time-zone: "UTC" | |||
# time-stamp-end: "; # UTC" | # time-stamp-end: "; # UTC" | |||
# End: | # End: | |||
End of changes. 6 change blocks. | ||||
8 lines changed or deleted | 8 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |