| 25 |
chg=`cvs -q update -P -d | tee $tmpFil | sed '/^?/d' | wc -l` |
chg=`cvs -q update -P -d | tee $tmpFil | sed '/^?/d' | wc -l` |
| 26 |
#echo "chg ='$chg'" |
#echo "chg ='$chg'" |
| 27 |
cat $tmpFil ; rm -f $tmpFil |
cat $tmpFil ; rm -f $tmpFil |
| 28 |
if test "x$chg" != x0 ; then |
if test "x$chg" != x0 ; then |
| 29 |
if test -f $exe ; then echo " removing: $exe force re-build." ; fi |
if test -f $exe ; then echo " removing: $exe force re-build." ; fi |
| 30 |
rm -f $exe |
rm -f $exe |
| 31 |
fi |
fi |
| 32 |
|
|
| 33 |
#- update front-page building dir: |
#- update front-page building dir: |
| 38 |
cd /u/u2/jmc/testing/logs |
cd /u/u2/jmc/testing/logs |
| 39 |
n=$(( `ls bld_manual.* | wc -l` - 10 )) |
n=$(( `ls bld_manual.* | wc -l` - 10 )) |
| 40 |
if test $n -gt 0 ; then |
if test $n -gt 0 ; then |
| 41 |
echo -n ' remove files: ' |
echo -n ' remove files: ' |
| 42 |
ls -lt bld_manual.* | tail -"$n" |
ls -lt bld_manual.* | tail -"$n" |
| 43 |
ls -t bld_manual.* | tail -"$n" | xargs rm -f |
ls -t bld_manual.* | tail -"$n" | xargs rm -f |
| 44 |
fi |
fi |
| 54 |
ls -t check_outp_*.txt | tail -"$n" | xargs rm -f |
ls -t check_outp_*.txt | tail -"$n" | xargs rm -f |
| 55 |
fi |
fi |
| 56 |
|
|
|
|
|