#! /bin/sh # explode master batch files into normal batch files # =()<. ${NEWSCONFIG-@@}>()= . ${NEWSCONFIG-/var/lib/news/bin/config} PATH=$NEWSCTL/bin:$NEWSBIN/relay:$NEWSBIN:$NEWSPATH ; export PATH umask $NEWSUMASK cd $NEWSARTS for f in out.master/[0-9]* do if [ ! -f $f ] ; then continue; fi # <- this line added (bash fix) # These 3 commented out to fix the bash incompatibility: # case "$f" in # "out.master/[0-9]*") break ;; # no work # esac work=$f.tmp export f work # lock against relaynews for the mv and # batchers for explode. SHELL=/bin/sh $NEWSBIN/maint/locknews <<'!' mv $f $work # move out the way of relaynews explode $work rm -f $work ! done