summaryrefslogtreecommitdiff
path: root/build-aux/depcomp
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-04-10 06:04:59 -0700
committerKarl Berry <karl@freefriends.org>2011-04-10 06:04:59 -0700
commit272e856de01e47a4c1385369931d9e88a32f1cd7 (patch)
tree66a99ddea3e56beb1c8dbeb15337dfe599d812aa /build-aux/depcomp
parentf9e83fd48cb5c5a0b5a65751710138d42c814402 (diff)
downloadgnulib-272e856de01e47a4c1385369931d9e88a32f1cd7.tar.gz
autoupdate
Diffstat (limited to 'build-aux/depcomp')
-rwxr-xr-xbuild-aux/depcomp10
1 files changed, 6 insertions, 4 deletions
diff --git a/build-aux/depcomp b/build-aux/depcomp
index c3163befc3..43bd0f9bc1 100755
--- a/build-aux/depcomp
+++ b/build-aux/depcomp
@@ -1,10 +1,10 @@
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
-scriptversion=2010-10-07.20; # UTC
+scriptversion=2011-04-09-11; # UTC
-# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010
-# Free Software Foundation, Inc.
+# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
+# 2011 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -557,7 +557,9 @@ makedepend)
touch "$tmpdepfile"
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
rm -f "$depfile"
- cat < "$tmpdepfile" > "$depfile"
+ # makedepend may prepend the VPATH from the source file name to the object.
+ # No need to regex-escape $object, excess matching of '.' is harmless.
+ sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
sed '1,2d' "$tmpdepfile" | tr ' ' '
' | \
## Some versions of the HPUX 10.20 sed can't process this invocation