78 |
fi |
fi |
79 |
done |
done |
80 |
|
|
81 |
#------------------------ |
if test -x $SCRIPT ; then |
82 |
if test $CLEAN = 1 ; then |
if test $CLEAN = 1 ; then |
83 |
echo "clean output from script '$SCRIPT' for experiment in:" |
echo "clean output from script '$SCRIPT' for experiment in:" |
84 |
|
else |
85 |
|
echo "run script '$SCRIPT' for experiment in:" |
86 |
|
fi |
87 |
echo " $LIST" |
echo " $LIST" |
88 |
echo "" |
echo "" |
89 |
|
yy=`echo $SCRIPT | grep -c '^\/'` |
90 |
|
if test $yy = 0 ; then SCRIPT="../../$SCRIPT" ; fi |
91 |
|
else |
92 |
|
echo "ERROR: script '$SCRIPT' not found or not executable" |
93 |
|
exit |
94 |
|
fi |
95 |
|
#------------------------ |
96 |
|
|
97 |
|
if test $CLEAN = 1 ; then |
98 |
for xx in $LIST |
for xx in $LIST |
99 |
do |
do |
100 |
listD='run '`(cd $xx/results ; ls output.*.txt 2> /dev/null | sed 's/^output\./tr_run./g' | sed 's/\.txt$//g' )` |
listD='run '`(cd $xx/results ; ls output.*.txt 2> /dev/null | sed 's/^output\./tr_run./g' | sed 's/\.txt$//g' )` |
112 |
done |
done |
113 |
exit |
exit |
114 |
fi |
fi |
|
if test -x $SCRIPT ; then |
|
|
echo "run script '$SCRIPT' for experiment in:" |
|
|
echo " $LIST" |
|
|
echo "" |
|
|
yy=`echo $SCRIPT | grep -c '^\/'` |
|
|
if test $yy = 0 ; then SCRIPT="../../$SCRIPT" ; fi |
|
|
else |
|
|
echo "ERROR: script '$SCRIPT' not found or not executable" |
|
|
exit |
|
|
fi |
|
|
|
|
115 |
#------------------------ |
#------------------------ |
116 |
# Create a uniquely named directory to store results |
# Create a uniquely named directory to store results |
117 |
CMDLINE=$0 |
CMDLINE=$0 |