masqmail-0.2

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