annotate src/flac-1.2.1/depcomp @ 1:05aa0afa9217

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