annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
c9bce6bb2a5d switched tests dir to ordinary Makefile
meillo@marmaro.de
parents:
diff changeset
1 # Makefile by markus schnalke <meillo@marmaro.de>
c9bce6bb2a5d switched tests dir to ordinary Makefile
meillo@marmaro.de
parents:
diff changeset
2 # heavily based on Makefile.am written by oliver kurth
c9bce6bb2a5d switched tests dir to ordinary Makefile
meillo@marmaro.de
parents:
diff changeset
3
c9bce6bb2a5d switched tests dir to ordinary Makefile
meillo@marmaro.de
parents:
diff changeset
4 all: test.conf local.sh smtpout.sh
46
3cb6f383f07e fixed tests/local.sh
meillo@marmaro.de
parents: 6
diff changeset
5 mkdir -p ./input ./lock
6
c9bce6bb2a5d switched tests dir to ordinary Makefile
meillo@marmaro.de
parents:
diff changeset
6
c9bce6bb2a5d switched tests dir to ordinary Makefile
meillo@marmaro.de
parents:
diff changeset
7 test.conf: conf.templ
46
3cb6f383f07e fixed tests/local.sh
meillo@marmaro.de
parents: 6
diff changeset
8 # fails if the current path contains `^'.
3cb6f383f07e fixed tests/local.sh
meillo@marmaro.de
parents: 6
diff changeset
9 sed "s/SMTP_HOST/`hostname`/; s^PWD^`pwd`^" conf.templ > test.conf
6
c9bce6bb2a5d switched tests dir to ordinary Makefile
meillo@marmaro.de
parents:
diff changeset
10
c9bce6bb2a5d switched tests dir to ordinary Makefile
meillo@marmaro.de
parents:
diff changeset
11 local.sh: test.templ
c9bce6bb2a5d switched tests dir to ordinary Makefile
meillo@marmaro.de
parents:
diff changeset
12 sed s/RECV_HOST/localhost/ test.templ > local.sh
c9bce6bb2a5d switched tests dir to ordinary Makefile
meillo@marmaro.de
parents:
diff changeset
13 chmod ugo+x local.sh
c9bce6bb2a5d switched tests dir to ordinary Makefile
meillo@marmaro.de
parents:
diff changeset
14
c9bce6bb2a5d switched tests dir to ordinary Makefile
meillo@marmaro.de
parents:
diff changeset
15 smtpout.sh: test.templ
c9bce6bb2a5d switched tests dir to ordinary Makefile
meillo@marmaro.de
parents:
diff changeset
16 sed s/RECV_HOST/`hostname`/ test.templ > smtpout.sh
c9bce6bb2a5d switched tests dir to ordinary Makefile
meillo@marmaro.de
parents:
diff changeset
17 chmod ugo+x smtpout.sh
c9bce6bb2a5d switched tests dir to ordinary Makefile
meillo@marmaro.de
parents:
diff changeset
18
c9bce6bb2a5d switched tests dir to ordinary Makefile
meillo@marmaro.de
parents:
diff changeset
19 clean:
c9bce6bb2a5d switched tests dir to ordinary Makefile
meillo@marmaro.de
parents:
diff changeset
20 rm -f test.conf local.sh smtpout.sh
46
3cb6f383f07e fixed tests/local.sh
meillo@marmaro.de
parents: 6
diff changeset
21 rm -rf ./input ./lock