diff options
author | Karl Berry <karl@freefriends.org> | 2011-04-12 02:17:53 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-04-12 02:17:53 +0000 |
commit | f32a2e50cc622f74da28763c3b6ee0604288762e (patch) | |
tree | e3d78c66e26d16f66931e43ebe9b7df491873652 /Build/source/build-aux | |
parent | 3c60902f4d49ce0d7a1dcf96974294b5876ca87b (diff) |
/home/texlive/karl/Master/tlpkg/bin/tl-update-auto
git-svn-id: svn://tug.org/texlive/trunk@22057 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/build-aux')
-rwxr-xr-x | Build/source/build-aux/depcomp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Build/source/build-aux/depcomp b/Build/source/build-aux/depcomp index c3163befc32..43bd0f9bc12 100755 --- a/Build/source/build-aux/depcomp +++ b/Build/source/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 |