view src/test2.bash @ 12:6ac6d6b822ce stable-2-0

fix memory leak with duplicate url host names, document differences from sendmail.mc feature
author carl
date Fri, 23 Apr 2004 22:45:10 -0700
parents dbe18921f741
children
line wrap: on
line source

#!/bin/bash

g++ -c scanner.cpp
if [ $? -ne 0 ]; then
    echo "compiler errors"
    exit
fi
g++ -o scanner scanner.o /usr/lib/libresolv.a
if [ $? -ne 0 ]; then
    echo "linker errors"
    exit
fi

if [ "$1" == "comp" ]; then
    exit
fi

#./scanner test.file
#./scanner /var/dcc/log/msg.1Q2cNc   #mime test
#./scanner /var/dcc/log/msg.1Q2cYs   #base64 test
#./scanner /var/dcc/log/msg.1Q2bD7   #html entity test

#for i in /var/dcc/log/*; do
for i in /tmp/dcc/msg*; do
    echo '**********************'
    echo $i
    ./scanner $i
done