From 967093ed971423c2fe4ec07f8c86b9131afc26c1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 16 Feb 2010 11:31:18 +0200 Subject: Do not add project directory to paths that start with .. These files come from include directories specified with -I../foo instead of being generated. --- build/c/gnu/dep | 10 +++++----- build/c/intel/dep | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/build/c/gnu/dep b/build/c/gnu/dep index e0c0544..1286ce2 100755 --- a/build/c/gnu/dep +++ b/build/c/gnu/dep @@ -48,11 +48,11 @@ if [ "$files" ]; then fi # The last part of the script translates all file names that don't start -# with / (that is, local generated files) to files in $out_base. Note that -# it is assumed that such files are never installed and therefore there is -# no way get around the situation where this file is picket up from some -# other place (e.g., /usr/include). +# with / or . (that is, local generated files) to files in $out_base. Note +# that it is assumed that such files are never installed and therefore there +# is no way to get around the situation where this file is picket up from +# some other place (e.g., /usr/include). # -epilogue="s% \([^/ \\\\]\)% $out_base/\1%g;s%^\([^/ ].*:\)%$out_base/\1%" +epilogue="s% \([^/. \\\\]\)% $out_base/\1%g;s%^\([^/. ].*:\)%$out_base/\1%" exec sed -e "$script$epilogue" diff --git a/build/c/intel/dep b/build/c/intel/dep index 3a09302..70f3b79 100755 --- a/build/c/intel/dep +++ b/build/c/intel/dep @@ -48,11 +48,11 @@ if [ "$files" ]; then fi # The last part of the script translates all file names that don't start -# with / (that is, local generated files) to files in $out_base. Note that -# it is assumed that such files are never installed and therefore there is -# no way get around the situation where this file is picket up from some -# other place (e.g., /usr/include). +# with / or . (that is, local generated files) to files in $out_base. Note +# that it is assumed that such files are never installed and therefore there +# is no way to get around the situation where this file is picket up from +# some other place (e.g., /usr/include). # -epilogue="s% \([^/ \\\\]\)% $out_base/\1%g;s%^\([^/ ].*:\)%$out_base/\1%" +epilogue="s% \([^/. \\\\]\)% $out_base/\1%g;s%^\([^/. ].*:\)%$out_base/\1%" exec sed -e "$script$epilogue" -- cgit v1.1