This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

missing: a patch


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]