comparison test.bash @ 14:443aa0e8c6fa

changes suggested by Nigel Horne
author carl
date Mon, 26 Apr 2004 09:28:30 -0700
parents 2752e512fd32
children 2ae8d953f1d0
comparison
equal deleted inserted replaced
13:2752e512fd32 14:443aa0e8c6fa
1 #!/bin/bash 1 #!/bin/bash
2 2
3 ########################### 3 ############################
4 # compile and run the test program 4 ## compile and run the test program
5 # 5 ##
6 g++ -c test.cpp 6 #g++ -c test.cpp
7 if [ $? -ne 0 ]; then 7 #if [ $? -ne 0 ]; then
8 echo "compiler errors" 8 # echo "compiler errors"
9 exit 9 # exit
10 fi 10 #fi
11 g++ -o test test.o -pthread 11 #g++ -o test test.o -pthread
12 if [ $? -ne 0 ]; then 12 #if [ $? -ne 0 ]; then
13 echo "linker errors" 13 # echo "linker errors"
14 exit 14 # exit
15 fi 15 #fi
16 16
17 ./test
18 exit
19 17
20 ########################### 18 ###########################
21 # compile the milter 19 # compile the milter
22 # 20 #
23 g++ -c dnsbl.cpp 21 g++ -c dnsbl.cpp