6 echo "I'm now attempting to regenerate all files in this release using"
7 echo "the new prop compiler and see if everything matches."
8 echo "Current directory is $CURDIR."
9 echo "Making a test directory $TESTDIR."
11 echo "Testing all .ph files"
13 for ph_file
in [a-z
]*.ph
; do
14 h_file
=`echo $ph_file | sed -e 's/\\.ph$/\\.h/'`
15 if [ -f $h_file ]; then
16 awk 'BEGIN { printf "Compiling '${ph_file}' into " }' </dev
/null
19 $CURDIR/prop
-O14 -S -I$CURDIR -I$CURDIR/..
/include
$ph_file
21 awk 'BEGIN { printf "Testing '${h_file}'..." }' </dev
/null
22 diff $TESTDIR/$h_file $CURDIR/$h_file
24 echo "Bad"; errors
=`expr $errors + 1`;
25 badfiles
="$badfiles $h_file"
33 echo "Testing all .pcc files"
34 for pcc_file
in [a-z
]*.pcc
; do
35 cc_file
=`echo $pcc_file | sed -e 's/\.pcc$/\.cc/'`
36 if [ -f $cc_file ]; then
37 awk 'BEGIN { printf "Compiling '${pcc_file}' into " }' </dev
/null
40 $CURDIR/prop
-O14 -S -I$CURDIR -I$CURDIR/..
/include
$pcc_file
42 awk 'BEGIN { printf "Testing '${cc_file}'..." }' </dev
/null
43 diff $TESTDIR/$cc_file $CURDIR/$cc_file
45 echo "Bad"; errors
=`expr $errors + 1`;
46 badfiles
="$badfiles $cc_file"
55 if [ $errors != 0 ]; then
56 echo "There are $errors errors";
57 echo "The errors are in: $badfiles";
58 echo "Please send bug report to leunga@cs.nyu.edu"
61 echo "$CURDIR/prop seems to be okay."; exit 0;