143 |
# makedependmodel directory |
# makedependmodel directory |
144 |
( cd $1; |
( cd $1; |
145 |
if [ $clean -gt 0 ]; then |
if [ $clean -gt 0 ]; then |
146 |
|
rm -f output.txt |
147 |
printf 'make clean ... ' 2>&1 |
printf 'make clean ... ' 2>&1 |
148 |
make CLEAN >> make.log 2>&1 |
make CLEAN >> make.log 2>&1 |
149 |
if [ $? -ne 0 ]; then |
if [ $? -ne 0 ]; then |
204 |
if [ -x $2 ]; then |
if [ -x $2 ]; then |
205 |
if [ ! -r output.txt -o $quick -eq 0 ]; then |
if [ ! -r output.txt -o $quick -eq 0 ]; then |
206 |
echo runmodel: running... 1>&2 |
echo runmodel: running... 1>&2 |
207 |
|
rm -f output.txt |
208 |
( ./$2 > output.txt 2>&1 ) && return 0 |
( ./$2 > output.txt 2>&1 ) && return 0 |
209 |
return 1 |
return 1 |
210 |
else |
else |
337 |
esac |
esac |
338 |
done |
done |
339 |
|
|
340 |
|
if [ $clean -gt 0 -a $quick -gt 0 ]; then |
341 |
|
echo You specified -quick and -clean together which conflict. |
342 |
|
echo Please specify either -quick or -clean or neither but not both. |
343 |
|
exit 1 |
344 |
|
fi |
345 |
|
|
346 |
#if [ ${#expts} -eq 0 ]; then |
#if [ ${#expts} -eq 0 ]; then |
347 |
# echo Scanning all directories |
# echo Scanning all directories |
348 |
# for arg in * |
# for arg in * |