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
parents c9bce6bb2a5d
children
line diff
     1.1 --- a/tests/Makefile	Mon May 17 13:16:07 2010 +0200
     1.2 +++ b/tests/Makefile	Wed May 19 13:33:05 2010 +0200
     1.3 @@ -2,10 +2,11 @@
     1.4  # heavily based on Makefile.am written by oliver kurth
     1.5  
     1.6  all: test.conf local.sh smtpout.sh
     1.7 -
     1.8 +	mkdir -p ./input ./lock
     1.9  
    1.10  test.conf: conf.templ
    1.11 -	sed s/SMTP_HOST/`hostname`/ conf.templ > test.conf
    1.12 +	# fails if the current path contains `^'.
    1.13 +	sed "s/SMTP_HOST/`hostname`/; s^PWD^`pwd`^" conf.templ > test.conf
    1.14  
    1.15  local.sh: test.templ
    1.16  	sed s/RECV_HOST/localhost/ test.templ > local.sh
    1.17 @@ -17,3 +18,4 @@
    1.18  
    1.19  clean:
    1.20  	rm -f test.conf local.sh smtpout.sh
    1.21 +	rm -rf ./input ./lock