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