Annotation of 43BSDReno/contrib/isode-beta/compat/isologs.sh, revision 1.1

1.1     ! root        1: : run this script through /bin/sh
        !             2: 
        !             3: x=`fgrep logpath @(ETCDIR)isotailor 2>/dev/null | awk '{ print $2 }'`
        !             4: if [ "x$x" != x ]; then
        !             5:     cd $x
        !             6: else
        !             7:     cd @(LOGDIR)
        !             8: fi
        !             9: 
        !            10: rm -f iso.*.log ros.*.log [0-9]*.log
        !            11: 
        !            12: for A in [a-z]*.log
        !            13: do
        !            14:     x=2
        !            15:     while [ $x -gt 0 ];
        !            16:     do
        !            17:        y=`expr $x - 1`
        !            18:        mv $A-$y $A-$x >/dev/null 2>&1
        !            19:        x=$y
        !            20:     done
        !            21: 
        !            22:     if [ ! -f $A ];
        !            23:     then
        !            24:        continue
        !            25:     fi
        !            26: 
        !            27:     if [ -s $A ];
        !            28:     then
        !            29:        mv $A $A-0 >/dev/null 2>&1
        !            30:     fi
        !            31: 
        !            32:     > $A
        !            33:     chmod 666 $A
        !            34: done
        !            35: 
        !            36: exit 0

unix.superglobalmegacorp.com

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