joachim99@2: #! /bin/sh joachim99@69: # depcomp - compile a program generating dependencies as side-effects joachim99@2: joachim99@69: scriptversion=2005-05-14.22 joachim99@69: joachim99@69: # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. joachim99@2: joachim99@2: # This program is free software; you can redistribute it and/or modify joachim99@2: # it under the terms of the GNU General Public License as published by joachim99@2: # the Free Software Foundation; either version 2, or (at your option) joachim99@2: # any later version. joachim99@2: joachim99@2: # This program is distributed in the hope that it will be useful, joachim99@2: # but WITHOUT ANY WARRANTY; without even the implied warranty of joachim99@2: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the joachim99@2: # GNU General Public License for more details. joachim99@2: joachim99@2: # You should have received a copy of the GNU General Public License joachim99@2: # along with this program; if not, write to the Free Software joachim99@69: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA joachim99@69: # 02110-1301, USA. joachim99@2: joachim99@14: # As a special exception to the GNU General Public License, if you joachim99@14: # distribute this file as part of a program that contains a joachim99@14: # configuration script generated by Autoconf, you may include it under joachim99@14: # the same distribution terms that you use for the rest of that program. joachim99@14: joachim99@2: # Originally written by Alexandre Oliva . joachim99@2: joachim99@69: case $1 in joachim99@69: '') joachim99@69: echo "$0: No command. Try \`$0 --help' for more information." 1>&2 joachim99@69: exit 1; joachim99@69: ;; joachim99@69: -h | --h*) joachim99@69: cat <<\EOF joachim99@69: Usage: depcomp [--help] [--version] PROGRAM [ARGS] joachim99@69: joachim99@69: Run PROGRAMS ARGS to compile a file, generating dependencies joachim99@69: as side-effects. joachim99@69: joachim99@69: Environment variables: joachim99@69: depmode Dependency tracking mode. joachim99@69: source Source file read by `PROGRAMS ARGS'. joachim99@69: object Object file output by `PROGRAMS ARGS'. joachim99@69: DEPDIR directory where to store dependencies. joachim99@69: depfile Dependency file to output. joachim99@69: tmpdepfile Temporary file to use when outputing dependencies. joachim99@69: libtool Whether libtool is used (yes/no). joachim99@69: joachim99@69: Report bugs to . joachim99@69: EOF joachim99@69: exit $? joachim99@69: ;; joachim99@69: -v | --v*) joachim99@69: echo "depcomp $scriptversion" joachim99@69: exit $? joachim99@69: ;; joachim99@69: esac joachim99@69: joachim99@2: if test -z "$depmode" || test -z "$source" || test -z "$object"; then joachim99@2: echo "depcomp: Variables source, object and depmode must be set" 1>&2 joachim99@2: exit 1 joachim99@2: fi joachim99@2: joachim99@69: # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. joachim99@69: depfile=${depfile-`echo "$object" | joachim99@69: sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} joachim99@2: tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} joachim99@2: joachim99@2: rm -f "$tmpdepfile" joachim99@2: joachim99@2: # Some modes work just like other modes, but use different flags. We joachim99@2: # parameterize here, but still list the modes in the big case below, joachim99@2: # to make depend.m4 easier to write. Note that we *cannot* use a case joachim99@2: # here, because this file can only contain one case statement. joachim99@2: if test "$depmode" = hp; then joachim99@2: # HP compiler uses -M and no extra arg. joachim99@2: gccflag=-M joachim99@2: depmode=gcc joachim99@2: fi joachim99@2: joachim99@2: if test "$depmode" = dashXmstdout; then joachim99@2: # This is just like dashmstdout with a different argument. joachim99@2: dashmflag=-xM joachim99@2: depmode=dashmstdout joachim99@2: fi joachim99@2: joachim99@2: case "$depmode" in joachim99@2: gcc3) joachim99@2: ## gcc 3 implements dependency tracking that does exactly what joachim99@14: ## we want. Yay! Note: for some reason libtool 1.4 doesn't like joachim99@14: ## it if -MD -MP comes after the -MF stuff. Hmm. joachim99@14: "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" joachim99@14: stat=$? joachim99@14: if test $stat -eq 0; then : joachim99@2: else joachim99@2: rm -f "$tmpdepfile" joachim99@2: exit $stat joachim99@2: fi joachim99@2: mv "$tmpdepfile" "$depfile" joachim99@2: ;; joachim99@2: joachim99@2: gcc) joachim99@2: ## There are various ways to get dependency output from gcc. Here's joachim99@2: ## why we pick this rather obscure method: joachim99@2: ## - Don't want to use -MD because we'd like the dependencies to end joachim99@2: ## up in a subdir. Having to rename by hand is ugly. joachim99@2: ## (We might end up doing this anyway to support other compilers.) joachim99@2: ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like joachim99@2: ## -MM, not -M (despite what the docs say). joachim99@2: ## - Using -M directly means running the compiler twice (even worse joachim99@2: ## than renaming). joachim99@2: if test -z "$gccflag"; then joachim99@2: gccflag=-MD, joachim99@2: fi joachim99@14: "$@" -Wp,"$gccflag$tmpdepfile" joachim99@14: stat=$? joachim99@14: if test $stat -eq 0; then : joachim99@2: else joachim99@2: rm -f "$tmpdepfile" joachim99@2: exit $stat joachim99@2: fi joachim99@2: rm -f "$depfile" joachim99@2: echo "$object : \\" > "$depfile" joachim99@2: alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz joachim99@2: ## The second -e expression handles DOS-style file names with drive letters. joachim99@2: sed -e 's/^[^:]*: / /' \ joachim99@2: -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" joachim99@2: ## This next piece of magic avoids the `deleted header file' problem. joachim99@2: ## The problem is that when a header file which appears in a .P file joachim99@2: ## is deleted, the dependency causes make to die (because there is joachim99@2: ## typically no way to rebuild the header). We avoid this by adding joachim99@2: ## dummy dependencies for each header file. Too bad gcc doesn't do joachim99@2: ## this for us directly. joachim99@2: tr ' ' ' joachim99@2: ' < "$tmpdepfile" | joachim99@2: ## Some versions of gcc put a space before the `:'. On the theory joachim99@2: ## that the space means something, we add a space to the output as joachim99@2: ## well. joachim99@2: ## Some versions of the HPUX 10.20 sed can't process this invocation joachim99@2: ## correctly. Breaking it into two sed invocations is a workaround. joachim99@2: sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" joachim99@2: rm -f "$tmpdepfile" joachim99@2: ;; joachim99@2: joachim99@2: hp) joachim99@2: # This case exists only to let depend.m4 do its work. It works by joachim99@2: # looking at the text of this script. This case will never be run, joachim99@2: # since it is checked for above. joachim99@2: exit 1 joachim99@2: ;; joachim99@2: joachim99@2: sgi) joachim99@2: if test "$libtool" = yes; then joachim99@2: "$@" "-Wp,-MDupdate,$tmpdepfile" joachim99@2: else joachim99@2: "$@" -MDupdate "$tmpdepfile" joachim99@2: fi joachim99@2: stat=$? joachim99@2: if test $stat -eq 0; then : joachim99@2: else joachim99@2: rm -f "$tmpdepfile" joachim99@2: exit $stat joachim99@2: fi joachim99@2: rm -f "$depfile" joachim99@2: joachim99@2: if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files joachim99@2: echo "$object : \\" > "$depfile" joachim99@2: joachim99@14: # Clip off the initial element (the dependent). Don't try to be joachim99@2: # clever and replace this with sed code, as IRIX sed won't handle joachim99@2: # lines with more than a fixed number of characters (4096 in joachim99@14: # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; joachim99@14: # the IRIX cc adds comments like `#:fec' to the end of the joachim99@14: # dependency line. joachim99@2: tr ' ' ' joachim99@14: ' < "$tmpdepfile" \ joachim99@14: | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ joachim99@14: tr ' joachim99@2: ' ' ' >> $depfile joachim99@14: echo >> $depfile joachim99@2: joachim99@14: # The second pass generates a dummy entry for each header file. joachim99@2: tr ' ' ' joachim99@14: ' < "$tmpdepfile" \ joachim99@14: | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ joachim99@14: >> $depfile joachim99@2: else joachim99@2: # The sourcefile does not contain any dependencies, so just joachim99@2: # store a dummy comment line, to avoid errors with the Makefile joachim99@2: # "include basename.Plo" scheme. joachim99@2: echo "#dummy" > "$depfile" joachim99@2: fi joachim99@2: rm -f "$tmpdepfile" joachim99@2: ;; joachim99@2: joachim99@2: aix) joachim99@2: # The C for AIX Compiler uses -M and outputs the dependencies joachim99@69: # in a .u file. In older versions, this file always lives in the joachim99@69: # current directory. Also, the AIX compiler puts `$object:' at the joachim99@69: # start of each line; $object doesn't have directory information. joachim99@69: # Version 6 uses the directory in both cases. joachim99@69: stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` joachim99@14: tmpdepfile="$stripped.u" joachim99@2: if test "$libtool" = yes; then joachim99@2: "$@" -Wc,-M joachim99@2: else joachim99@2: "$@" -M joachim99@2: fi joachim99@69: stat=$? joachim99@2: joachim99@69: if test -f "$tmpdepfile"; then : joachim99@69: else joachim99@69: stripped=`echo "$stripped" | sed 's,^.*/,,'` joachim99@69: tmpdepfile="$stripped.u" joachim99@69: fi joachim99@69: joachim99@2: if test $stat -eq 0; then : joachim99@2: else joachim99@2: rm -f "$tmpdepfile" joachim99@2: exit $stat joachim99@2: fi joachim99@2: joachim99@2: if test -f "$tmpdepfile"; then joachim99@69: outname="$stripped.o" joachim99@14: # Each line is of the form `foo.o: dependent.h'. joachim99@14: # Do two passes, one to just change these to joachim99@14: # `$object: dependent.h' and one to simply `dependent.h:'. joachim99@14: sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" joachim99@14: sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" joachim99@2: else joachim99@2: # The sourcefile does not contain any dependencies, so just joachim99@2: # store a dummy comment line, to avoid errors with the Makefile joachim99@2: # "include basename.Plo" scheme. joachim99@2: echo "#dummy" > "$depfile" joachim99@2: fi joachim99@2: rm -f "$tmpdepfile" joachim99@2: ;; joachim99@2: joachim99@14: icc) joachim99@69: # Intel's C compiler understands `-MD -MF file'. However on joachim99@14: # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c joachim99@69: # ICC 7.0 will fill foo.d with something like joachim99@14: # foo.o: sub/foo.c joachim99@14: # foo.o: sub/foo.h joachim99@14: # which is wrong. We want: joachim99@14: # sub/foo.o: sub/foo.c joachim99@14: # sub/foo.o: sub/foo.h joachim99@14: # sub/foo.c: joachim99@14: # sub/foo.h: joachim99@69: # ICC 7.1 will output joachim99@69: # foo.o: sub/foo.c sub/foo.h joachim99@69: # and will wrap long lines using \ : joachim99@69: # foo.o: sub/foo.c ... \ joachim99@69: # sub/foo.h ... \ joachim99@69: # ... joachim99@14: joachim99@14: "$@" -MD -MF "$tmpdepfile" joachim99@14: stat=$? joachim99@14: if test $stat -eq 0; then : joachim99@14: else joachim99@14: rm -f "$tmpdepfile" joachim99@14: exit $stat joachim99@14: fi joachim99@14: rm -f "$depfile" joachim99@69: # Each line is of the form `foo.o: dependent.h', joachim99@69: # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. joachim99@14: # Do two passes, one to just change these to joachim99@14: # `$object: dependent.h' and one to simply `dependent.h:'. joachim99@69: sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" joachim99@69: # Some versions of the HPUX 10.20 sed can't process this invocation joachim99@69: # correctly. Breaking it into two sed invocations is a workaround. joachim99@69: sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | joachim99@69: sed -e 's/$/ :/' >> "$depfile" joachim99@14: rm -f "$tmpdepfile" joachim99@14: ;; joachim99@14: joachim99@14: tru64) joachim99@69: # The Tru64 compiler uses -MD to generate dependencies as a side joachim99@14: # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. joachim99@69: # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put joachim99@14: # dependencies in `foo.d' instead, so we check for that too. joachim99@14: # Subdirectories are respected. joachim99@69: dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` joachim99@69: test "x$dir" = "x$object" && dir= joachim99@69: base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` joachim99@14: joachim99@14: if test "$libtool" = yes; then joachim99@69: # With Tru64 cc, shared objects can also be used to make a joachim99@69: # static library. This mecanism is used in libtool 1.4 series to joachim99@69: # handle both shared and static libraries in a single compilation. joachim99@69: # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. joachim99@69: # joachim99@69: # With libtool 1.5 this exception was removed, and libtool now joachim99@69: # generates 2 separate objects for the 2 libraries. These two joachim99@69: # compilations output dependencies in in $dir.libs/$base.o.d and joachim99@69: # in $dir$base.o.d. We have to check for both files, because joachim99@69: # one of the two compilations can be disabled. We should prefer joachim99@69: # $dir$base.o.d over $dir.libs/$base.o.d because the latter is joachim99@69: # automatically cleaned when .libs/ is deleted, while ignoring joachim99@69: # the former would cause a distcleancheck panic. joachim99@69: tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 joachim99@69: tmpdepfile2=$dir$base.o.d # libtool 1.5 joachim99@69: tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 joachim99@69: tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 joachim99@14: "$@" -Wc,-MD joachim99@14: else joachim99@69: tmpdepfile1=$dir$base.o.d joachim99@69: tmpdepfile2=$dir$base.d joachim99@69: tmpdepfile3=$dir$base.d joachim99@69: tmpdepfile4=$dir$base.d joachim99@14: "$@" -MD joachim99@14: fi joachim99@14: joachim99@14: stat=$? joachim99@14: if test $stat -eq 0; then : joachim99@14: else joachim99@69: rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" joachim99@14: exit $stat joachim99@14: fi joachim99@14: joachim99@69: for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" joachim99@69: do joachim99@69: test -f "$tmpdepfile" && break joachim99@69: done joachim99@14: if test -f "$tmpdepfile"; then joachim99@14: sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" joachim99@69: # That's a tab and a space in the []. joachim99@69: sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" joachim99@14: else joachim99@14: echo "#dummy" > "$depfile" joachim99@14: fi joachim99@14: rm -f "$tmpdepfile" joachim99@14: ;; joachim99@14: joachim99@2: #nosideeffect) joachim99@2: # This comment above is used by automake to tell side-effect joachim99@2: # dependency tracking mechanisms from slower ones. joachim99@2: joachim99@2: dashmstdout) joachim99@2: # Important note: in order to support this mode, a compiler *must* joachim99@69: # always write the preprocessed file to stdout, regardless of -o. joachim99@69: "$@" || exit $? joachim99@69: joachim99@69: # Remove the call to Libtool. joachim99@69: if test "$libtool" = yes; then joachim99@69: while test $1 != '--mode=compile'; do joachim99@69: shift joachim99@69: done joachim99@69: shift joachim99@69: fi joachim99@69: joachim99@69: # Remove `-o $object'. joachim99@69: IFS=" " joachim99@69: for arg joachim99@69: do joachim99@69: case $arg in joachim99@69: -o) joachim99@69: shift joachim99@69: ;; joachim99@69: $object) joachim99@69: shift joachim99@69: ;; joachim99@69: *) joachim99@69: set fnord "$@" "$arg" joachim99@69: shift # fnord joachim99@69: shift # $arg joachim99@2: ;; joachim99@2: esac joachim99@69: done joachim99@69: joachim99@69: test -z "$dashmflag" && dashmflag=-M joachim99@69: # Require at least two characters before searching for `:' joachim99@69: # in the target name. This is to cope with DOS-style filenames: joachim99@69: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. joachim99@69: "$@" $dashmflag | joachim99@69: sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" joachim99@2: rm -f "$depfile" joachim99@2: cat < "$tmpdepfile" > "$depfile" joachim99@2: tr ' ' ' joachim99@2: ' < "$tmpdepfile" | \ joachim99@2: ## Some versions of the HPUX 10.20 sed can't process this invocation joachim99@2: ## correctly. Breaking it into two sed invocations is a workaround. joachim99@2: sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" joachim99@2: rm -f "$tmpdepfile" joachim99@2: ;; joachim99@2: joachim99@2: dashXmstdout) joachim99@2: # This case only exists to satisfy depend.m4. It is never actually joachim99@2: # run, as this mode is specially recognized in the preamble. joachim99@2: exit 1 joachim99@2: ;; joachim99@2: joachim99@2: makedepend) joachim99@69: "$@" || exit $? joachim99@69: # Remove any Libtool call joachim99@69: if test "$libtool" = yes; then joachim99@69: while test $1 != '--mode=compile'; do joachim99@69: shift joachim99@69: done joachim99@69: shift joachim99@69: fi joachim99@2: # X makedepend joachim99@69: shift joachim99@69: cleared=no joachim99@69: for arg in "$@"; do joachim99@69: case $cleared in joachim99@69: no) joachim99@69: set ""; shift joachim99@69: cleared=yes ;; joachim99@69: esac joachim99@69: case "$arg" in joachim99@69: -D*|-I*) joachim99@69: set fnord "$@" "$arg"; shift ;; joachim99@69: # Strip any option that makedepend may not understand. Remove joachim99@69: # the object too, otherwise makedepend will parse it as a source file. joachim99@69: -*|$object) joachim99@69: ;; joachim99@69: *) joachim99@69: set fnord "$@" "$arg"; shift ;; joachim99@69: esac joachim99@69: done joachim99@69: obj_suffix="`echo $object | sed 's/^.*\././'`" joachim99@69: touch "$tmpdepfile" joachim99@69: ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" joachim99@2: rm -f "$depfile" joachim99@2: cat < "$tmpdepfile" > "$depfile" joachim99@69: sed '1,2d' "$tmpdepfile" | tr ' ' ' joachim99@2: ' | \ joachim99@2: ## Some versions of the HPUX 10.20 sed can't process this invocation joachim99@2: ## correctly. Breaking it into two sed invocations is a workaround. joachim99@2: sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" joachim99@2: rm -f "$tmpdepfile" "$tmpdepfile".bak joachim99@2: ;; joachim99@2: joachim99@2: cpp) joachim99@2: # Important note: in order to support this mode, a compiler *must* joachim99@69: # always write the preprocessed file to stdout. joachim99@69: "$@" || exit $? joachim99@69: joachim99@69: # Remove the call to Libtool. joachim99@69: if test "$libtool" = yes; then joachim99@69: while test $1 != '--mode=compile'; do joachim99@69: shift joachim99@69: done joachim99@69: shift joachim99@69: fi joachim99@69: joachim99@69: # Remove `-o $object'. joachim99@69: IFS=" " joachim99@69: for arg joachim99@69: do joachim99@69: case $arg in joachim99@69: -o) joachim99@69: shift joachim99@69: ;; joachim99@69: $object) joachim99@69: shift joachim99@69: ;; joachim99@69: *) joachim99@69: set fnord "$@" "$arg" joachim99@69: shift # fnord joachim99@69: shift # $arg joachim99@2: ;; joachim99@2: esac joachim99@69: done joachim99@69: joachim99@69: "$@" -E | joachim99@2: sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | joachim99@2: sed '$ s: \\$::' > "$tmpdepfile" joachim99@2: rm -f "$depfile" joachim99@2: echo "$object : \\" > "$depfile" joachim99@2: cat < "$tmpdepfile" >> "$depfile" joachim99@2: sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" joachim99@2: rm -f "$tmpdepfile" joachim99@2: ;; joachim99@2: joachim99@2: msvisualcpp) joachim99@2: # Important note: in order to support this mode, a compiler *must* joachim99@69: # always write the preprocessed file to stdout, regardless of -o, joachim99@2: # because we must use -o when running libtool. joachim99@69: "$@" || exit $? joachim99@69: IFS=" " joachim99@69: for arg joachim99@69: do joachim99@69: case "$arg" in joachim99@69: "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") joachim99@69: set fnord "$@" joachim99@69: shift joachim99@69: shift joachim99@69: ;; joachim99@69: *) joachim99@2: set fnord "$@" "$arg" joachim99@69: shift joachim99@69: shift joachim99@69: ;; joachim99@2: esac joachim99@69: done joachim99@69: "$@" -E | joachim99@69: sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" joachim99@2: rm -f "$depfile" joachim99@2: echo "$object : \\" > "$depfile" joachim99@2: . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" joachim99@2: echo " " >> "$depfile" joachim99@2: . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" joachim99@2: rm -f "$tmpdepfile" joachim99@2: ;; joachim99@2: joachim99@2: none) joachim99@2: exec "$@" joachim99@2: ;; joachim99@2: joachim99@2: *) joachim99@2: echo "Unknown depmode $depmode" 1>&2 joachim99@2: exit 1 joachim99@2: ;; joachim99@2: esac joachim99@2: joachim99@2: exit 0 joachim99@69: joachim99@69: # Local Variables: joachim99@69: # mode: shell-script joachim99@69: # sh-indentation: 2 joachim99@69: # eval: (add-hook 'write-file-hooks 'time-stamp) joachim99@69: # time-stamp-start: "scriptversion=" joachim99@69: # time-stamp-format: "%:y-%02m-%02d.%02H" joachim99@69: # time-stamp-end: "$" joachim99@69: # End: