Annotation of 43BSD/contrib/news/src/sendbatch.sh, revision 1.1.1.1

1.1       root        1: : '@(#)sendbatch.sh    1.7     3/19/86'
                      2: 
                      3: cflags=
                      4: LIM=50000
                      5: CMD='LIBDIR/batch BATCHDIR/$rmt $LIM'
                      6: ECHO=
                      7: COMP=
                      8: C7=
                      9: RNEWS=rnews
                     10: 
                     11: for rmt in $*
                     12: do
                     13:        case $rmt in
                     14:        -[bBC]*)        cflags="$cflags $rmt"; continue;;
                     15:        -s*)    LIM=`expr "$rmt" : '-s\(.*\)'`
                     16:                continue;;
                     17:        -c7)    COMP='| LIBDIR/compress $cflags'
                     18:                C7='| LIBDIR/encode'
                     19:                ECHO='echo "#! c7unbatch"'
                     20:                continue;;
                     21:        -c)     COMP='| LIBDIR/compress $cflags'
                     22:                ECHO='echo "#! cunbatch"'
                     23:                continue;;
                     24:        -o*)    ECHO=`expr "$rmt" : '-o\(.*\)'`
                     25:                RNEWS='cunbatch'
                     26:                continue;;
                     27:        esac
                     28: 
                     29:        if test -n "$COMP"
                     30:        then
                     31:                LIM=`expr $LIM \* 2`
                     32:        fi
                     33: 
                     34:        : make sure $? is zero
                     35:        while test $? -eq 0 -a \( -s BATCHDIR/$rmt -o -s BATCHDIR/$rmt.work \)
                     36:        do
                     37:                (eval $ECHO; eval $CMD $COMP $C7)|
                     38:                        if test -s BATCHDIR/$rmt.cmd
                     39:                        then
                     40:                                BATCHDIR/$rmt.cmd
                     41:                        else
                     42:                                uux - UUXFLAGS $rmt!$RNEWS
                     43:                        fi
                     44:        done
                     45: done

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.