*** empty log message ***

This commit is contained in:
2006-11-19 07:45:46 +00:00
parent 635912a61b
commit b96d5d93f4
29 changed files with 308 additions and 30 deletions

View File

@ -1,21 +1,57 @@
#!/bin/sh
pid=$$
init()
{
for script in emp-???.awk
do
output=`echo $script | sed 's/\.awk$/.out/g'`
./awk $script emp-en.data > "$output"
done
}
for script in emp???.awk
do
output=`echo $script | sed 's/\.awk$/.out/g'`
./awk $script emp-en.data > "$output.$pid"
test()
{
pid=$$
for script in emp-???.awk
do
output=`echo $script | sed 's/\.awk$/.out/g'`
./awk $script emp-en.data > "$output.$pid"
diff $output "$output.$pid"
if [ $? -ne 0 ]
then
echo "###################################"
echo "PROBLEM(S) DETECTED IN $script.".
echo "###################################"
rm -f "$output.$pid"
break
fi
diff $output "$output.$pid"
if [ $? -ne 0 ]
then
echo "###################################"
echo "PROBLEM(S) DETECTED IN $script.".
echo "###################################"
rm -f "$output.$pid"
break
fi
done
}
#--------#
# main #
#--------#
if [ $# -ne 1 ]
then
echo "Usage: $0 init"
echo " $0 test"
exit 1
fi
if [ "$1" = "init" ]
then
init
elif [ "$1" = "test" ]
then
test
else
echo "Usage: $0 init"
echo " $0 test"
exit 1
fi
rm -f "$output.$pid"
done