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