Mercurial > masqmail-0.2
comparison 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 |
comparison
equal
deleted
inserted
replaced
45:f0334dc87e1d | 46:3cb6f383f07e |
---|---|
1 # Makefile by markus schnalke <meillo@marmaro.de> | 1 # Makefile by markus schnalke <meillo@marmaro.de> |
2 # heavily based on Makefile.am written by oliver kurth | 2 # heavily based on Makefile.am written by oliver kurth |
3 | 3 |
4 all: test.conf local.sh smtpout.sh | 4 all: test.conf local.sh smtpout.sh |
5 | 5 mkdir -p ./input ./lock |
6 | 6 |
7 test.conf: conf.templ | 7 test.conf: conf.templ |
8 sed s/SMTP_HOST/`hostname`/ conf.templ > test.conf | 8 # fails if the current path contains `^'. |
9 sed "s/SMTP_HOST/`hostname`/; s^PWD^`pwd`^" conf.templ > test.conf | |
9 | 10 |
10 local.sh: test.templ | 11 local.sh: test.templ |
11 sed s/RECV_HOST/localhost/ test.templ > local.sh | 12 sed s/RECV_HOST/localhost/ test.templ > local.sh |
12 chmod ugo+x local.sh | 13 chmod ugo+x local.sh |
13 | 14 |
15 sed s/RECV_HOST/`hostname`/ test.templ > smtpout.sh | 16 sed s/RECV_HOST/`hostname`/ test.templ > smtpout.sh |
16 chmod ugo+x smtpout.sh | 17 chmod ugo+x smtpout.sh |
17 | 18 |
18 clean: | 19 clean: |
19 rm -f test.conf local.sh smtpout.sh | 20 rm -f test.conf local.sh smtpout.sh |
21 rm -rf ./input ./lock |