From 34844381bd67e7157852ab14066eff5c90a369c9 Mon Sep 17 00:00:00 2001 From: "kestes%walrus.com" Date: Mon, 9 Dec 2002 18:01:13 +0000 Subject: [PATCH] portability fix for xargs record the arguments to ./configure providea a means of seeing all the perl package dependencies --- webtools/tinderbox2/Makefile.in | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/webtools/tinderbox2/Makefile.in b/webtools/tinderbox2/Makefile.in index 3ec547c0c5a..0511c8f5def 100644 --- a/webtools/tinderbox2/Makefile.in +++ b/webtools/tinderbox2/Makefile.in @@ -47,6 +47,13 @@ builddir=@builddir@ config_script=@config_script@ confdir=localconf +# how to run xargs to print only one argument on a line +xargs_single=@xargs_single@ + +#------------------------------------------------------------ + +@CONFIGURE_ARGS@ + # Makefile Targets #------------------------------------------------------------ @@ -81,14 +88,14 @@ compile_all_code: build find $(builddir) -type f | \ egrep -v -i "readme|\.gif|/test/|addimage.cgi|images.pm|bustagestats.cgi|initrc|Storable.pm" | \ egrep -v -i "initrc|ignore_waitstatus" | \ - xargs -l perl -T -w -c + xargs $(xargs_single) perl -T -w -c compile_bin_code: build @echo @echo "----- Testing if perl can compile all files in the bin directory -----" find $(builddir)/bin -type f | \ egrep -v -i "readme|\.gif|/test/|addimage.cgi|images.pm|bustagestats.cgi|initrc|Storable.pm" | \ - xargs -l perl -T -w -c + xargs $(xargs_single) perl -T -w -c cvskeyword_test: @@ -114,6 +121,17 @@ link_test: egrep -v -i "test|mage|clientbin" | \ xargs egrep -i "> file + echo >> file + find $(builddir) \ + | xargs egrep -h '^use ' | egrep ';$' \ + | sort -r -u \ + >> $(builddir)/bin/check_all_use_statements + echo >> file + echo '1;' >> file + STAGE_FILE := \ tb2StageFile() { \ source=$$1; \