Mercurial > masqmail-0.2
diff tests/Makefile @ 46:3cb6f383f07e
fixed tests/local.sh
commented unnecessary lines in config only out (should be polished)
{log,mail,spool}_dir require absolute paths
author | meillo@marmaro.de |
---|---|
date | Wed, 19 May 2010 13:33:05 +0200 (2010-05-19) |
parents | c9bce6bb2a5d |
children |
line wrap: on
line diff
--- a/tests/Makefile Mon May 17 13:16:07 2010 +0200 +++ b/tests/Makefile Wed May 19 13:33:05 2010 +0200 @@ -2,10 +2,11 @@ # heavily based on Makefile.am written by oliver kurth all: test.conf local.sh smtpout.sh - + mkdir -p ./input ./lock test.conf: conf.templ - sed s/SMTP_HOST/`hostname`/ conf.templ > test.conf + # fails if the current path contains `^'. + sed "s/SMTP_HOST/`hostname`/; s^PWD^`pwd`^" conf.templ > test.conf local.sh: test.templ sed s/RECV_HOST/localhost/ test.templ > local.sh @@ -17,3 +18,4 @@ clean: rm -f test.conf local.sh smtpout.sh + rm -rf ./input ./lock