Generate testrun.sh to use relative directory names.

This commit is contained in:
Roland McGrath 2011-07-02 16:03:04 -07:00
parent ea5ee9f73d
commit 84f9ea0f73
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2011-07-02 Roland McGrath <roland@hack.frob.com> 2011-07-02 Roland McGrath <roland@hack.frob.com>
* 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. * scripts/check-local-headers.sh: Rewritten using awk.
Match by word, not by line. Print error messages for matches. Match by word, not by line. Print error messages for matches.
* Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it. * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.

View File

@ -163,8 +163,10 @@ endif
$(common-objpfx)testrun.sh: $(common-objpfx)config.make \ $(common-objpfx)testrun.sh: $(common-objpfx)config.make \
$(..)Makeconfig $(..)Makefile $(..)Makeconfig $(..)Makefile
(echo '#!/bin/sh'; \ (echo '#!/bin/sh'; \
echo "GCONV_PATH='$(common-objpfx)iconvdata' \\"; \ echo 'builddir=`dirname "$$0"`'; \
echo 'exec $(run-program-prefix) $${1+"$$@"}'; \ echo 'GCONV_PATH="$${builddir}/iconvdata" \'; \
echo 'exec $(subst $(common-objdir),"$${builddir}",\
$(run-program-prefix)) $${1+"$$@"}'; \
) > $@T ) > $@T
chmod a+x $@T chmod a+x $@T
mv -f $@T $@ mv -f $@T $@