comparison test.bash @ 13:2752e512fd32 stable-2-1

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