| 211 | continue | continue | 
| 212 | fi | fi | 
| 213 | tdir=`cat $TEMPDIR"/out" | head -1 | sed -e 's|^./||g' | cut -d '/' -f 1` | tdir=`cat $TEMPDIR"/out" | head -1 | sed -e 's|^./||g' | cut -d '/' -f 1` | 
|  | #tdir=`( cd $TEMPDIR ; /bin/ls -l | grep '^d' | head -1 | awk '{print $NF}' )` |  | 
| 214 | if test -d $TEMPDIR/$tdir ; then | if test -d $TEMPDIR/$tdir ; then | 
| 215 | rm -f $TEMPDIR"/out" | rm -f $TEMPDIR"/out" | 
| 216 | else | else | 
| 256 | #-- copy to $locDir and rename if necessary | #-- copy to $locDir and rename if necessary | 
| 257 | sdir=$tdir | sdir=$tdir | 
| 258 | if test -e $locDir"/"$tdir ; then | if test -e $locDir"/"$tdir ; then | 
| 259 |  | sdir=`echo $tdir | sed 's/_[0-9]*$//'` | 
| 260 | ad=0 | ad=0 | 
| 261 | while test -e $locDir"/"$tdir"_"$ad ; do | while test -e $locDir"/"$sdir"_"$ad ; do | 
| 262 | ad=$(( $ad + 1 )) | ad=$(( $ad + 1 )) | 
| 263 | done | done | 
| 264 | sdir=$tdir"_"$ad | sdir=$sdir"_"$ad | 
| 265 | fi | fi | 
| 266 | if test $PRT = 2 ; then | if test $PRT = 2 ; then | 
| 267 | if test "x$locDir" = "x$OUTDIR" | if test "x$locDir" = "x$OUTDIR" |