home *** CD-ROM | disk | FTP | other *** search
- #! /bin/sh
- # Shellscript for xbin'ing groups of files to one directory for macput.
- # Invokes /bin/sh upon entry.
- #
- # This shellscript will ignore directories and files that are unreadable,
- # as well as any files without the line "(This file must be converted...)"
- #
- # Wildcards may be used. Thus, to xbin all files in the range 240 to 249
- # use "macxbin 24*"
- # Upon termination of the operation, the Macintosh bell will ring
- # two times. This is your clue to wake up and see what is waiting.
- # This might be deleted if you plan to do this in the background and
- # don't want to be bothered.
- #
- # Done on May 5, 1985 by
- # Chris Borton (sdcsvax!sdcc6!ix924)
- # University of California at San Diego. (Undergraduate CS)
- #
- mesg n
- for f in $*
- do
- if [ -f $f ] && [ -r $f ]
- then
- fgrep "(This file must be converted" $f > /tmp/BinHextest
-
- if [ -s /tmp/BinHextest ]
- then
- rm /tmp/BinHextest
-
- # Replace "/hp1h/ixmaster/ix924/hcx" with the full path to the directory you
- # wish to put the files to download.
-
- cp $f /hp1h/ixmaster/ix924/hcx
- cd /hp1h/ixmaster/ix924/hcx
- xbin $f
- rm $f
-
- # Replace "/usr/spool/news/net/sources/mac" with the path to your
- # net.sources.mac if it is different.
-
- cd /usr/spool/news/net/sources/mac
- else
- rm /tmp/BinHextest
- fi
- fi
- done
- echo -n " "
- echo "Downloads ready!"
- echo -n
- echo -n
- mesg y
-