--- MITgcm/verification/testreport 2006/06/08 21:39:35 1.80 +++ MITgcm/verification/testreport 2006/06/18 21:20:51 1.82 @@ -1,6 +1,6 @@ #! /usr/bin/env bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/testreport,v 1.80 2006/06/08 21:39:35 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/verification/testreport,v 1.82 2006/06/18 21:20:51 jmc Exp $ # $Name: $ # @@ -495,14 +495,16 @@ ln -sf "../input_ad/"$i $i fi done - files=`( cd ../input ; ls -1 | grep -v CVS )` - for i in $files ; do + if test -d "../input" ; then + files=`( cd ../input ; ls -1 | grep -v CVS )` + for i in $files ; do if test ! -d "../input/"$i ; then if test ! -r $i ; then ln -sf "../input/"$i $i fi fi - done + done + fi fi ) fi @@ -637,12 +639,12 @@ scandirs() { - if [ $# -eq 0 ]; then - for arg in * ; do - test -d $arg/input && echo $arg - done + if [ $# -eq 1 ]; then + for arg in * ; do + test -d $arg/$1 && echo $arg + done else - echo $* + echo $* fi } @@ -805,7 +807,11 @@ fi if test "x$TESTDIRS" = x ; then - TESTDIRS=`scandirs` + if test "x$ADM" = xt ; then + TESTDIRS=`scandirs results_ad` + else + TESTDIRS=`scandirs results` + fi fi if test "x$OPTFILE" = xNONE -a "x$MITGCM_OF" != x ; then