From: Roland McGrath Date: Sat, 2 Jul 2011 23:03:04 +0000 (-0700) Subject: Generate testrun.sh to use relative directory names. X-Git-Tag: glibc-2.15~489^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84f9ea0f73dbb3946294acf132f03ab437befc73;p=thirdparty%2Fglibc.git Generate testrun.sh to use relative directory names. --- diff --git a/ChangeLog b/ChangeLog index 70c31cb745a..a5167235e74 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2011-07-02 Roland McGrath + * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to + containing directory rather than embedding absolute directory names. + * scripts/check-local-headers.sh: Rewritten using awk. Match by word, not by line. Print error messages for matches. * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it. diff --git a/Makefile b/Makefile index 287f671c177..6f2dfa66fa9 100644 --- a/Makefile +++ b/Makefile @@ -163,8 +163,10 @@ endif $(common-objpfx)testrun.sh: $(common-objpfx)config.make \ $(..)Makeconfig $(..)Makefile (echo '#!/bin/sh'; \ - echo "GCONV_PATH='$(common-objpfx)iconvdata' \\"; \ - echo 'exec $(run-program-prefix) $${1+"$$@"}'; \ + echo 'builddir=`dirname "$$0"`'; \ + echo 'GCONV_PATH="$${builddir}/iconvdata" \'; \ + echo 'exec $(subst $(common-objdir),"$${builddir}",\ + $(run-program-prefix)) $${1+"$$@"}'; \ ) > $@T chmod a+x $@T mv -f $@T $@