From c6907a905d2ec2b3e01ef2d4a1bb88c0f7344daf Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 3 Oct 1997 06:27:26 +0000 Subject: [PATCH] * Makefile.in: Fix up site.exp generation to reduce the quoting lossage somewhat. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10205 dc483132-0cff-0310-8789-dd5450dbe970 --- src/tests/dejagnu/ChangeLog | 5 +++++ src/tests/dejagnu/Makefile.in | 15 ++++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/tests/dejagnu/ChangeLog b/src/tests/dejagnu/ChangeLog index dfe2144bf..e30adc713 100644 --- a/src/tests/dejagnu/ChangeLog +++ b/src/tests/dejagnu/ChangeLog @@ -1,3 +1,8 @@ +Fri Oct 3 02:26:45 1997 Tom Yu + + * Makefile.in: Fix up site.exp generation to reduce the quoting + lossage somewhat. + Sun Aug 17 14:26:57 1997 Ezra Peisach * Makefile.in (SRCS): Add $(SRCS) line. diff --git a/src/tests/dejagnu/Makefile.in b/src/tests/dejagnu/Makefile.in index 32ca3f5ea..7d45af0cf 100644 --- a/src/tests/dejagnu/Makefile.in +++ b/src/tests/dejagnu/Makefile.in @@ -25,14 +25,19 @@ t_inetd:: t_inetd.o $(KRB5_BASE_DEPLIBS) $(CC_LINK) -o t_inetd t_inetd.o $(KRB5_BASE_LIBS) clean:: - $(RM) t_inetd t_inetd.o site.exp + $(RM) t_inetd t_inetd.o site.exp runenv.vars runenv.vals clean-unix:: $(RM) -rf tmpdir dbg.log krb.log krb.sum -site.exp:: Makefile - echo "set runvarlist [list $(KRB5_RUN_ENV)]" | sed \ - -e 's/;//g' -e 's:=\.:='`pwd`'/.:g' > site.exp - +runenv.vars: Makefile + echo '$(KRB5_RUN_ENV)' | tr ';' '\012' | \ + sed -ne 's% *\([^=]*\)=.*%\1%p' > runenv.vars +runenv.vals: runenv.vars + $(KRB5_RUN_ENV) for i in `cat runenv.vars`; do \ + eval echo "{$$i=\$$$$i}"; done > runenv.vals +site.exp: runenv.vals + echo "set runvarlist [list `cat runenv.vals`]" | \ + sed -e 's%=\.%='`pwd`'/.%g' > site.exp -- 2.26.2