home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d3xx / d318 / cnewsbin.lha / CNewsBin / cnews.bin.lzh / C / batch.sh < prev    next >
Text File  |  1990-02-06  |  661b  |  28 lines

  1. echo
  2. echo "This shell script processes all files in the News:In.Coming directory"
  3. echo "  Only compressed files are distributed.  In coming news must be"
  4. echo "  in compressed format with the trailing '.z' on the filename."
  5. echo "  Note that this script uses a version of the 16-bit compress."
  6. echo
  7.  
  8. label loop
  9.     cd News:In.Coming
  10.     echo *.z >RAM:tmp
  11.  
  12.     input list <RAM:tmp
  13.     if $list
  14.         strhead one " " $list
  15.         strhead two ".z" $one
  16.         echo $one -- $two
  17.  
  18.         echo "acomp -d <" $one ">" RAM:$two
  19.         acomp -d <$one >RAM:$two
  20.         echo "relaynews -df <" RAM:$two
  21.         relaynews -df <RAM:$two
  22.  
  23.         rm RAM:$two News:In.Coming/$one
  24.         goto loop
  25.     endif
  26.     unset list one two
  27.     rm RAM:tmp
  28.