summaryrefslogtreecommitdiff
path: root/lib/depcomp
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2011-04-09 12:38:11 +0200
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2011-04-09 12:38:11 +0200
commit7953494a128593bf74d2849f488f593c4d4fea9c (patch)
tree93df12ceacd052a35ffddfff5664ae4c28c8ba54 /lib/depcomp
parent6a85bc48aa9691574053a153d79cc79cd28e311f (diff)
downloadautomake-7953494a128593bf74d2849f488f593c4d4fea9c.tar.gz
Clarify regex code in depcomp.
* lib/depcomp: Add comment why we don't need regex-escaping here. Suggested by Stefano Lattarini. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'lib/depcomp')
-rwxr-xr-xlib/depcomp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/depcomp b/lib/depcomp
index ce9419cd9..8097c1930 100755
--- a/lib/depcomp
+++ b/lib/depcomp
@@ -1,7 +1,7 @@
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
-scriptversion=2011-04-08-18; # UTC
+scriptversion=2011-04-09-11; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2011,
# Free Software Foundation, Inc.
@@ -504,6 +504,7 @@ makedepend)
${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
rm -f "$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 ' ' '
' | \