+Fri Oct 3 02:26:45 1997 Tom Yu <tlyu@mit.edu>
+
+ * Makefile.in: Fix up site.exp generation to reduce the quoting
+ lossage somewhat.
+
Sun Aug 17 14:26:57 1997 Ezra Peisach <epeisach@mit.edu>
* Makefile.in (SRCS): Add $(SRCS) line.
$(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