annotate depcomp @ 0:d39e1d0d75b6

initial add
author paulo@hit-nxdomain.opendns.com
date Sat, 20 Feb 2010 21:18:28 -0800
parents
children
rev   line source
paulo@0 1 #! /bin/sh
paulo@0 2
paulo@0 3 # depcomp - compile a program generating dependencies as side-effects
paulo@0 4 # Copyright 1999, 2000, 2003 Free Software Foundation, Inc.
paulo@0 5
paulo@0 6 # This program is free software; you can redistribute it and/or modify
paulo@0 7 # it under the terms of the GNU General Public License as published by
paulo@0 8 # the Free Software Foundation; either version 2, or (at your option)
paulo@0 9 # any later version.
paulo@0 10
paulo@0 11 # This program is distributed in the hope that it will be useful,
paulo@0 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
paulo@0 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
paulo@0 14 # GNU General Public License for more details.
paulo@0 15
paulo@0 16 # You should have received a copy of the GNU General Public License
paulo@0 17 # along with this program; if not, write to the Free Software
paulo@0 18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
paulo@0 19 # 02111-1307, USA.
paulo@0 20
paulo@0 21 # As a special exception to the GNU General Public License, if you
paulo@0 22 # distribute this file as part of a program that contains a
paulo@0 23 # configuration script generated by Autoconf, you may include it under
paulo@0 24 # the same distribution terms that you use for the rest of that program.
paulo@0 25
paulo@0 26 # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
paulo@0 27
paulo@0 28 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
paulo@0 29 echo "depcomp: Variables source, object and depmode must be set" 1>&2
paulo@0 30 exit 1
paulo@0 31 fi
paulo@0 32 # `libtool' can also be set to `yes' or `no'.
paulo@0 33
paulo@0 34 if test -z "$depfile"; then
paulo@0 35 base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`
paulo@0 36 dir=`echo "$object" | sed 's,/.*$,/,'`
paulo@0 37 if test "$dir" = "$object"; then
paulo@0 38 dir=
paulo@0 39 fi
paulo@0 40 # FIXME: should be _deps on DOS.
paulo@0 41 depfile="$dir.deps/$base"
paulo@0 42 fi
paulo@0 43
paulo@0 44 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
paulo@0 45
paulo@0 46 rm -f "$tmpdepfile"
paulo@0 47
paulo@0 48 # Some modes work just like other modes, but use different flags. We
paulo@0 49 # parameterize here, but still list the modes in the big case below,
paulo@0 50 # to make depend.m4 easier to write. Note that we *cannot* use a case
paulo@0 51 # here, because this file can only contain one case statement.
paulo@0 52 if test "$depmode" = hp; then
paulo@0 53 # HP compiler uses -M and no extra arg.
paulo@0 54 gccflag=-M
paulo@0 55 depmode=gcc
paulo@0 56 fi
paulo@0 57
paulo@0 58 if test "$depmode" = dashXmstdout; then
paulo@0 59 # This is just like dashmstdout with a different argument.
paulo@0 60 dashmflag=-xM
paulo@0 61 depmode=dashmstdout
paulo@0 62 fi
paulo@0 63
paulo@0 64 case "$depmode" in
paulo@0 65 gcc3)
paulo@0 66 ## gcc 3 implements dependency tracking that does exactly what
paulo@0 67 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
paulo@0 68 ## it if -MD -MP comes after the -MF stuff. Hmm.
paulo@0 69 "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
paulo@0 70 stat=$?
paulo@0 71 if test $stat -eq 0; then :
paulo@0 72 else
paulo@0 73 rm -f "$tmpdepfile"
paulo@0 74 exit $stat
paulo@0 75 fi
paulo@0 76 mv "$tmpdepfile" "$depfile"
paulo@0 77 ;;
paulo@0 78
paulo@0 79 gcc)
paulo@0 80 ## There are various ways to get dependency output from gcc. Here's
paulo@0 81 ## why we pick this rather obscure method:
paulo@0 82 ## - Don't want to use -MD because we'd like the dependencies to end
paulo@0 83 ## up in a subdir. Having to rename by hand is ugly.
paulo@0 84 ## (We might end up doing this anyway to support other compilers.)
paulo@0 85 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
paulo@0 86 ## -MM, not -M (despite what the docs say).
paulo@0 87 ## - Using -M directly means running the compiler twice (even worse
paulo@0 88 ## than renaming).
paulo@0 89 if test -z "$gccflag"; then
paulo@0 90 gccflag=-MD,
paulo@0 91 fi
paulo@0 92 "$@" -Wp,"$gccflag$tmpdepfile"
paulo@0 93 stat=$?
paulo@0 94 if test $stat -eq 0; then :
paulo@0 95 else
paulo@0 96 rm -f "$tmpdepfile"
paulo@0 97 exit $stat
paulo@0 98 fi
paulo@0 99 rm -f "$depfile"
paulo@0 100 echo "$object : \\" > "$depfile"
paulo@0 101 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
paulo@0 102 ## The second -e expression handles DOS-style file names with drive letters.
paulo@0 103 sed -e 's/^[^:]*: / /' \
paulo@0 104 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
paulo@0 105 ## This next piece of magic avoids the `deleted header file' problem.
paulo@0 106 ## The problem is that when a header file which appears in a .P file
paulo@0 107 ## is deleted, the dependency causes make to die (because there is
paulo@0 108 ## typically no way to rebuild the header). We avoid this by adding
paulo@0 109 ## dummy dependencies for each header file. Too bad gcc doesn't do
paulo@0 110 ## this for us directly.
paulo@0 111 tr ' ' '
paulo@0 112 ' < "$tmpdepfile" |
paulo@0 113 ## Some versions of gcc put a space before the `:'. On the theory
paulo@0 114 ## that the space means something, we add a space to the output as
paulo@0 115 ## well.
paulo@0 116 ## Some versions of the HPUX 10.20 sed can't process this invocation
paulo@0 117 ## correctly. Breaking it into two sed invocations is a workaround.
paulo@0 118 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
paulo@0 119 rm -f "$tmpdepfile"
paulo@0 120 ;;
paulo@0 121
paulo@0 122 hp)
paulo@0 123 # This case exists only to let depend.m4 do its work. It works by
paulo@0 124 # looking at the text of this script. This case will never be run,
paulo@0 125 # since it is checked for above.
paulo@0 126 exit 1
paulo@0 127 ;;
paulo@0 128
paulo@0 129 sgi)
paulo@0 130 if test "$libtool" = yes; then
paulo@0 131 "$@" "-Wp,-MDupdate,$tmpdepfile"
paulo@0 132 else
paulo@0 133 "$@" -MDupdate "$tmpdepfile"
paulo@0 134 fi
paulo@0 135 stat=$?
paulo@0 136 if test $stat -eq 0; then :
paulo@0 137 else
paulo@0 138 rm -f "$tmpdepfile"
paulo@0 139 exit $stat
paulo@0 140 fi
paulo@0 141 rm -f "$depfile"
paulo@0 142
paulo@0 143 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
paulo@0 144 echo "$object : \\" > "$depfile"
paulo@0 145
paulo@0 146 # Clip off the initial element (the dependent). Don't try to be
paulo@0 147 # clever and replace this with sed code, as IRIX sed won't handle
paulo@0 148 # lines with more than a fixed number of characters (4096 in
paulo@0 149 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
paulo@0 150 # the IRIX cc adds comments like `#:fec' to the end of the
paulo@0 151 # dependency line.
paulo@0 152 tr ' ' '
paulo@0 153 ' < "$tmpdepfile" \
paulo@0 154 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
paulo@0 155 tr '
paulo@0 156 ' ' ' >> $depfile
paulo@0 157 echo >> $depfile
paulo@0 158
paulo@0 159 # The second pass generates a dummy entry for each header file.
paulo@0 160 tr ' ' '
paulo@0 161 ' < "$tmpdepfile" \
paulo@0 162 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
paulo@0 163 >> $depfile
paulo@0 164 else
paulo@0 165 # The sourcefile does not contain any dependencies, so just
paulo@0 166 # store a dummy comment line, to avoid errors with the Makefile
paulo@0 167 # "include basename.Plo" scheme.
paulo@0 168 echo "#dummy" > "$depfile"
paulo@0 169 fi
paulo@0 170 rm -f "$tmpdepfile"
paulo@0 171 ;;
paulo@0 172
paulo@0 173 aix)
paulo@0 174 # The C for AIX Compiler uses -M and outputs the dependencies
paulo@0 175 # in a .u file. In older versions, this file always lives in the
paulo@0 176 # current directory. Also, the AIX compiler puts `$object:' at the
paulo@0 177 # start of each line; $object doesn't have directory information.
paulo@0 178 # Version 6 uses the directory in both cases.
paulo@0 179 stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
paulo@0 180 tmpdepfile="$stripped.u"
paulo@0 181 if test "$libtool" = yes; then
paulo@0 182 "$@" -Wc,-M
paulo@0 183 else
paulo@0 184 "$@" -M
paulo@0 185 fi
paulo@0 186 stat=$?
paulo@0 187
paulo@0 188 if test -f "$tmpdepfile"; then :
paulo@0 189 else
paulo@0 190 stripped=`echo "$stripped" | sed 's,^.*/,,'`
paulo@0 191 tmpdepfile="$stripped.u"
paulo@0 192 fi
paulo@0 193
paulo@0 194 if test $stat -eq 0; then :
paulo@0 195 else
paulo@0 196 rm -f "$tmpdepfile"
paulo@0 197 exit $stat
paulo@0 198 fi
paulo@0 199
paulo@0 200 if test -f "$tmpdepfile"; then
paulo@0 201 outname="$stripped.o"
paulo@0 202 # Each line is of the form `foo.o: dependent.h'.
paulo@0 203 # Do two passes, one to just change these to
paulo@0 204 # `$object: dependent.h' and one to simply `dependent.h:'.
paulo@0 205 sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
paulo@0 206 sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
paulo@0 207 else
paulo@0 208 # The sourcefile does not contain any dependencies, so just
paulo@0 209 # store a dummy comment line, to avoid errors with the Makefile
paulo@0 210 # "include basename.Plo" scheme.
paulo@0 211 echo "#dummy" > "$depfile"
paulo@0 212 fi
paulo@0 213 rm -f "$tmpdepfile"
paulo@0 214 ;;
paulo@0 215
paulo@0 216 icc)
paulo@0 217 # Intel's C compiler understands `-MD -MF file'. However on
paulo@0 218 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
paulo@0 219 # ICC 7.0 will fill foo.d with something like
paulo@0 220 # foo.o: sub/foo.c
paulo@0 221 # foo.o: sub/foo.h
paulo@0 222 # which is wrong. We want:
paulo@0 223 # sub/foo.o: sub/foo.c
paulo@0 224 # sub/foo.o: sub/foo.h
paulo@0 225 # sub/foo.c:
paulo@0 226 # sub/foo.h:
paulo@0 227 # ICC 7.1 will output
paulo@0 228 # foo.o: sub/foo.c sub/foo.h
paulo@0 229 # and will wrap long lines using \ :
paulo@0 230 # foo.o: sub/foo.c ... \
paulo@0 231 # sub/foo.h ... \
paulo@0 232 # ...
paulo@0 233
paulo@0 234 "$@" -MD -MF "$tmpdepfile"
paulo@0 235 stat=$?
paulo@0 236 if test $stat -eq 0; then :
paulo@0 237 else
paulo@0 238 rm -f "$tmpdepfile"
paulo@0 239 exit $stat
paulo@0 240 fi
paulo@0 241 rm -f "$depfile"
paulo@0 242 # Each line is of the form `foo.o: dependent.h',
paulo@0 243 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
paulo@0 244 # Do two passes, one to just change these to
paulo@0 245 # `$object: dependent.h' and one to simply `dependent.h:'.
paulo@0 246 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
paulo@0 247 # Some versions of the HPUX 10.20 sed can't process this invocation
paulo@0 248 # correctly. Breaking it into two sed invocations is a workaround.
paulo@0 249 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
paulo@0 250 sed -e 's/$/ :/' >> "$depfile"
paulo@0 251 rm -f "$tmpdepfile"
paulo@0 252 ;;
paulo@0 253
paulo@0 254 tru64)
paulo@0 255 # The Tru64 compiler uses -MD to generate dependencies as a side
paulo@0 256 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
paulo@0 257 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
paulo@0 258 # dependencies in `foo.d' instead, so we check for that too.
paulo@0 259 # Subdirectories are respected.
paulo@0 260 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
paulo@0 261 test "x$dir" = "x$object" && dir=
paulo@0 262 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
paulo@0 263
paulo@0 264 if test "$libtool" = yes; then
paulo@0 265 tmpdepfile1="$dir.libs/$base.lo.d"
paulo@0 266 tmpdepfile2="$dir.libs/$base.d"
paulo@0 267 "$@" -Wc,-MD
paulo@0 268 else
paulo@0 269 tmpdepfile1="$dir$base.o.d"
paulo@0 270 tmpdepfile2="$dir$base.d"
paulo@0 271 "$@" -MD
paulo@0 272 fi
paulo@0 273
paulo@0 274 stat=$?
paulo@0 275 if test $stat -eq 0; then :
paulo@0 276 else
paulo@0 277 rm -f "$tmpdepfile1" "$tmpdepfile2"
paulo@0 278 exit $stat
paulo@0 279 fi
paulo@0 280
paulo@0 281 if test -f "$tmpdepfile1"; then
paulo@0 282 tmpdepfile="$tmpdepfile1"
paulo@0 283 else
paulo@0 284 tmpdepfile="$tmpdepfile2"
paulo@0 285 fi
paulo@0 286 if test -f "$tmpdepfile"; then
paulo@0 287 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
paulo@0 288 # That's a tab and a space in the [].
paulo@0 289 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
paulo@0 290 else
paulo@0 291 echo "#dummy" > "$depfile"
paulo@0 292 fi
paulo@0 293 rm -f "$tmpdepfile"
paulo@0 294 ;;
paulo@0 295
paulo@0 296 #nosideeffect)
paulo@0 297 # This comment above is used by automake to tell side-effect
paulo@0 298 # dependency tracking mechanisms from slower ones.
paulo@0 299
paulo@0 300 dashmstdout)
paulo@0 301 # Important note: in order to support this mode, a compiler *must*
paulo@0 302 # always write the preprocessed file to stdout, regardless of -o.
paulo@0 303 "$@" || exit $?
paulo@0 304
paulo@0 305 # Remove the call to Libtool.
paulo@0 306 if test "$libtool" = yes; then
paulo@0 307 while test $1 != '--mode=compile'; do
paulo@0 308 shift
paulo@0 309 done
paulo@0 310 shift
paulo@0 311 fi
paulo@0 312
paulo@0 313 # Remove `-o $object'.
paulo@0 314 IFS=" "
paulo@0 315 for arg
paulo@0 316 do
paulo@0 317 case $arg in
paulo@0 318 -o)
paulo@0 319 shift
paulo@0 320 ;;
paulo@0 321 $object)
paulo@0 322 shift
paulo@0 323 ;;
paulo@0 324 *)
paulo@0 325 set fnord "$@" "$arg"
paulo@0 326 shift # fnord
paulo@0 327 shift # $arg
paulo@0 328 ;;
paulo@0 329 esac
paulo@0 330 done
paulo@0 331
paulo@0 332 test -z "$dashmflag" && dashmflag=-M
paulo@0 333 # Require at least two characters before searching for `:'
paulo@0 334 # in the target name. This is to cope with DOS-style filenames:
paulo@0 335 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
paulo@0 336 "$@" $dashmflag |
paulo@0 337 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
paulo@0 338 rm -f "$depfile"
paulo@0 339 cat < "$tmpdepfile" > "$depfile"
paulo@0 340 tr ' ' '
paulo@0 341 ' < "$tmpdepfile" | \
paulo@0 342 ## Some versions of the HPUX 10.20 sed can't process this invocation
paulo@0 343 ## correctly. Breaking it into two sed invocations is a workaround.
paulo@0 344 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
paulo@0 345 rm -f "$tmpdepfile"
paulo@0 346 ;;
paulo@0 347
paulo@0 348 dashXmstdout)
paulo@0 349 # This case only exists to satisfy depend.m4. It is never actually
paulo@0 350 # run, as this mode is specially recognized in the preamble.
paulo@0 351 exit 1
paulo@0 352 ;;
paulo@0 353
paulo@0 354 makedepend)
paulo@0 355 "$@" || exit $?
paulo@0 356 # Remove any Libtool call
paulo@0 357 if test "$libtool" = yes; then
paulo@0 358 while test $1 != '--mode=compile'; do
paulo@0 359 shift
paulo@0 360 done
paulo@0 361 shift
paulo@0 362 fi
paulo@0 363 # X makedepend
paulo@0 364 shift
paulo@0 365 cleared=no
paulo@0 366 for arg in "$@"; do
paulo@0 367 case $cleared in
paulo@0 368 no)
paulo@0 369 set ""; shift
paulo@0 370 cleared=yes ;;
paulo@0 371 esac
paulo@0 372 case "$arg" in
paulo@0 373 -D*|-I*)
paulo@0 374 set fnord "$@" "$arg"; shift ;;
paulo@0 375 # Strip any option that makedepend may not understand. Remove
paulo@0 376 # the object too, otherwise makedepend will parse it as a source file.
paulo@0 377 -*|$object)
paulo@0 378 ;;
paulo@0 379 *)
paulo@0 380 set fnord "$@" "$arg"; shift ;;
paulo@0 381 esac
paulo@0 382 done
paulo@0 383 obj_suffix="`echo $object | sed 's/^.*\././'`"
paulo@0 384 touch "$tmpdepfile"
paulo@0 385 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
paulo@0 386 rm -f "$depfile"
paulo@0 387 cat < "$tmpdepfile" > "$depfile"
paulo@0 388 sed '1,2d' "$tmpdepfile" | tr ' ' '
paulo@0 389 ' | \
paulo@0 390 ## Some versions of the HPUX 10.20 sed can't process this invocation
paulo@0 391 ## correctly. Breaking it into two sed invocations is a workaround.
paulo@0 392 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
paulo@0 393 rm -f "$tmpdepfile" "$tmpdepfile".bak
paulo@0 394 ;;
paulo@0 395
paulo@0 396 cpp)
paulo@0 397 # Important note: in order to support this mode, a compiler *must*
paulo@0 398 # always write the preprocessed file to stdout.
paulo@0 399 "$@" || exit $?
paulo@0 400
paulo@0 401 # Remove the call to Libtool.
paulo@0 402 if test "$libtool" = yes; then
paulo@0 403 while test $1 != '--mode=compile'; do
paulo@0 404 shift
paulo@0 405 done
paulo@0 406 shift
paulo@0 407 fi
paulo@0 408
paulo@0 409 # Remove `-o $object'.
paulo@0 410 IFS=" "
paulo@0 411 for arg
paulo@0 412 do
paulo@0 413 case $arg in
paulo@0 414 -o)
paulo@0 415 shift
paulo@0 416 ;;
paulo@0 417 $object)
paulo@0 418 shift
paulo@0 419 ;;
paulo@0 420 *)
paulo@0 421 set fnord "$@" "$arg"
paulo@0 422 shift # fnord
paulo@0 423 shift # $arg
paulo@0 424 ;;
paulo@0 425 esac
paulo@0 426 done
paulo@0 427
paulo@0 428 "$@" -E |
paulo@0 429 sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
paulo@0 430 sed '$ s: \\$::' > "$tmpdepfile"
paulo@0 431 rm -f "$depfile"
paulo@0 432 echo "$object : \\" > "$depfile"
paulo@0 433 cat < "$tmpdepfile" >> "$depfile"
paulo@0 434 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
paulo@0 435 rm -f "$tmpdepfile"
paulo@0 436 ;;
paulo@0 437
paulo@0 438 msvisualcpp)
paulo@0 439 # Important note: in order to support this mode, a compiler *must*
paulo@0 440 # always write the preprocessed file to stdout, regardless of -o,
paulo@0 441 # because we must use -o when running libtool.
paulo@0 442 "$@" || exit $?
paulo@0 443 IFS=" "
paulo@0 444 for arg
paulo@0 445 do
paulo@0 446 case "$arg" in
paulo@0 447 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
paulo@0 448 set fnord "$@"
paulo@0 449 shift
paulo@0 450 shift
paulo@0 451 ;;
paulo@0 452 *)
paulo@0 453 set fnord "$@" "$arg"
paulo@0 454 shift
paulo@0 455 shift
paulo@0 456 ;;
paulo@0 457 esac
paulo@0 458 done
paulo@0 459 "$@" -E |
paulo@0 460 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
paulo@0 461 rm -f "$depfile"
paulo@0 462 echo "$object : \\" > "$depfile"
paulo@0 463 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
paulo@0 464 echo " " >> "$depfile"
paulo@0 465 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
paulo@0 466 rm -f "$tmpdepfile"
paulo@0 467 ;;
paulo@0 468
paulo@0 469 none)
paulo@0 470 exec "$@"
paulo@0 471 ;;
paulo@0 472
paulo@0 473 *)
paulo@0 474 echo "Unknown depmode $depmode" 1>&2
paulo@0 475 exit 1
paulo@0 476 ;;
paulo@0 477 esac
paulo@0 478
paulo@0 479 exit 0