This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
missing: a patch
- From: Bruce Korb <bkorb at veritas dot com>
- To: Automake Development <automake at gnu dot org>
- Cc: Albert Chin-A-Young <china at thewrittenword dot com>
- Cc: bkorb at veritas dot com
- Date: Mon, 28 Apr 2003 18:03:04 -0700
- Subject: missing: a patch
- Organization: Home
This patch allows me to utilize the missing infrastructure
for tools that missing doesn't have to know about. All I
have to do is add a file named, ``tool-name.missing'' in
the same directory where this script gets installed.
It is really useful. Thanks.
$ diff -u missing~ missing
--- missing~ 2002-04-19 13:55:59.000000000 -0700
+++ missing 2003-04-28 17:59:11.000000000 -0700
@@ -322,13 +322,19 @@
;;
*)
- echo 1>&2 "\
+ f=`dirname $0`/`basename $1`
+ if [ -f $f.missing ]
+ then
+ . $f.missing
+ else
+ echo 1>&2 "\
WARNING: \`$1' is needed, and you do not seem to have it handy on your
system. You might have modified some files without having the
proper tools for further handling them. Check the \`README' file,
it often tells you about the needed prerequirements for installing
this package. You may also peek at any GNU archive site, in case
some other package would contain this missing \`$1' program."
+ fi
exit 1
;;
esac