summaryrefslogtreecommitdiff
path: root/config/depcomp
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-11-11 07:13:26 +0000
committerJim Meyering <jim@meyering.net>2003-11-11 07:13:26 +0000
commit98a4c708d5bed39a54b62d092ec4a70d300aedaf (patch)
treeec7eab3cf1b0e7a41e019d7e25c63f277de7037d /config/depcomp
parentc6e903bd693edadc73d12346c33b329aa5928dc8 (diff)
downloadcoreutils-98a4c708d5bed39a54b62d092ec4a70d300aedaf.tar.xz
update from gnulib
Diffstat (limited to 'config/depcomp')
-rw-r--r--config/depcomp43
1 files changed, 42 insertions, 1 deletions
diff --git a/config/depcomp b/config/depcomp
index dcb2b19d5..9e5522d04 100644
--- a/config/depcomp
+++ b/config/depcomp
@@ -1,6 +1,8 @@
#! /bin/sh
-
# depcomp - compile a program generating dependencies as side-effects
+
+scriptversion=2003-11-08.23
+
# Copyright (C) 1999, 2000, 2003 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
@@ -25,6 +27,36 @@
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
+case $1 in
+ '')
+ echo "$0: No command. Try \`$0 --help' for more information." 1>&2
+ exit 1;
+ ;;
+ -h | --h*)
+ cat <<\EOF
+Usage: depcomp [--help] [--version] PROGRAM [ARGS]
+
+Run PROGRAMS ARGS to compile a file, generating dependencies
+as side-effects.
+
+Environment variables:
+ depmode Dependency tracking mode.
+ source Source file read by `PROGRAMS ARGS'.
+ object Object file output by `PROGRAMS ARGS'.
+ depfile Dependency file to output.
+ tmpdepfile Temporary file to use when outputing dependencies.
+ libtool Whether libtool is used (yes/no).
+
+Report bugs to <bug-automake@gnu.org>.
+EOF
+ exit 0
+ ;;
+ -v | --v*)
+ echo "depcomp $scriptversion"
+ exit 0
+ ;;
+esac
+
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
echo "depcomp: Variables source, object and depmode must be set" 1>&2
exit 1
@@ -477,3 +509,12 @@ none)
esac
exit 0
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End: