Adding -f to rms in order to avoid anoying messages, and renaming the
error file .gpt since .grr is reserved (even copyrighted :) for genlib.
This commit is contained in:
parent
0ba1402d3f
commit
174e56fd23
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $Id: genpat.sh,v 1.2 2002/10/24 10:30:25 hcl Exp $
|
# $Id: genpat.sh,v 1.3 2004/07/27 18:24:48 fred Exp $
|
||||||
|
|
||||||
#set -v
|
#set -v
|
||||||
#set -x
|
#set -x
|
||||||
|
@ -77,11 +77,11 @@ EOF
|
||||||
echo "Compiling, ..."
|
echo "Compiling, ..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
make -f $makefile > $name.grr 2>&1
|
make -f $makefile > $name.gpt 2>&1
|
||||||
|
|
||||||
if [ ! $? -eq 0 ]; then
|
if [ ! $? -eq 0 ]; then
|
||||||
echo "Compilation failed!"
|
echo "Compilation failed!"
|
||||||
cat $name.grr
|
cat $name.gpt
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -107,10 +107,10 @@ EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $keep -eq 0 ] ; then
|
if [ $keep -eq 0 ] ; then
|
||||||
rm $name $name.exe;
|
rm -f $name $name.exe;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm $name.o $name.grr $makefile > /dev/null 2>&1
|
rm -f $name.o $name.gpt $makefile > /dev/null 2>&1
|
||||||
|
|
||||||
exit $exit_code
|
exit $exit_code
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue