--- MITgcm/verification/testreport 2005/02/06 16:58:08 1.67 +++ MITgcm/verification/testreport 2005/06/07 22:21:47 1.68 @@ -1,6 +1,6 @@ #! /usr/bin/env bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/testreport,v 1.67 2005/02/06 16:58:08 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/testreport,v 1.68 2005/06/07 22:21:47 edhill Exp $ # $Name: $ # @@ -348,6 +348,20 @@ fi } +postclean() +{ + # postclean directory + if test "x$POSTCLEAN" = xt ; then + ( + cd $1; + if test -r Makefile ; then + $MAKE CLEAN >> /dev/null 2>&1 + fi + exit 0 + ) + fi +} + makedependmodel() { # makedependmodel directory @@ -636,6 +650,7 @@ NOGENMAKE=f NOCLEAN=f NODEPEND=f +POSTCLEAN=f BASH= OPTFILE=NONE @@ -729,6 +744,9 @@ -nodepend | --nodepend | -nd | --nd) NODEPEND=t ;; + -postclean | --postclean | -pc | --pc) + POSTCLEAN=t ;; + -mpi) MPI=t ;; -adm | -ad) ADM=t ;; @@ -1040,6 +1058,8 @@ echo "DATE='$DATE'" >> $CDIR"/summary.txt" echo "tdir='$dir'" >> $CDIR"/summary.txt" fi + + postclean $dir/$builddir echo "-------------------------------------------------------------------------------"