Mercurial > dnsbl
comparison test.bash @ 76:81f1e400e8ab
start coding on new config syntax
author | carl |
---|---|
date | Sat, 16 Jul 2005 13:47:19 -0700 |
parents | b7449114ebb0 |
children | 946fc1bcfb2c |
comparison
equal
deleted
inserted
replaced
75:1142e46be550 | 76:81f1e400e8ab |
---|---|
16 | 16 |
17 | 17 |
18 ########################### | 18 ########################### |
19 # compile the milter | 19 # compile the milter |
20 # | 20 # |
21 rm -f dnsbl.o scanner.o context.o tokenizer.o | 21 |
22 g++ -c -pthread dnsbl.cpp scanner.cpp context.cpp tokenizer.cpp | 22 if [ "$1" == "build" ]; then |
23 if [ $? -ne 0 ]; then | 23 rm -f dnsbl.o scanner.o context.o tokenizer.o |
24 echo "compiler errors" | 24 g++ -c -pthread dnsbl.cpp scanner.cpp context.cpp tokenizer.cpp |
25 exit | 25 if [ $? -ne 0 ]; then |
26 fi | 26 echo "compiler errors" |
27 g++ -o dnsbl dnsbl.o scanner.o context.o tokenizer.o /usr/lib/libresolv.a -lmilter -pthread | 27 exit |
28 if [ $? -ne 0 ]; then | 28 fi |
29 echo "linker errors" | 29 g++ -o dnsbl dnsbl.o scanner.o context.o tokenizer.o /usr/lib/libresolv.a -lmilter -pthread |
30 exit | 30 if [ $? -ne 0 ]; then |
31 echo "linker errors" | |
32 exit | |
33 fi | |
31 fi | 34 fi |
32 | 35 |
33 if [ "$1" == "comp" ]; then | 36 if [ "$1" == "comp" ]; then |
34 exit | 37 exit |
35 fi | 38 fi |