automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

missing: a patch


From: Bruce Korb
Subject: missing: a patch
Date: Mon, 28 Apr 2003 18:03:04 -0700

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]