#!/bin/sh # shell script to use to save 312f97.tgz to floppies # Created by fdsplit Sun Aug 1 14:45:37 EDT 1999 sysbin=/usr/local/bin:/usr/local/gnu/bin:/bin:/usr/bin:/usr/lib otherbin=$HOME/bin:/home/mom4/bynum/bin PATH=$sysbin:$otherbin:. # -rw-r--r-- 1 bynum faculty 2238027 Jul 30 14:28 312f97.tgz # -rw-r--r-- 1 bynum faculty 1452032 Aug 1 14:45 312f97.aa # -rw-r--r-- 1 bynum faculty 785995 Aug 1 14:45 312f97.ab # Original file size : # -rw-r--r-- 1 bynum faculty 2238027 Jul 30 14:28 312f97.tgz echo "Saving the file 312f97.tgz to floppies" echo "You will need 2 floppies" echo -n "Press RETURN when you have them " read dummy firsttime=T for i in 312f97.aa 312f97.ab do if (test ! -f $i) then echo "Can't continue -- the file $i is missing" exit fi case $OS in Sun*) eject;; *) case $firsttime in T) firsttime=F ;; F) echo "Remove floppy from drive" ;; esac esac while (true) do echo -n "Insert floppy to receive $i and press \"x\", then RETURN " read ans case $ans in x) break;; esac done mformat a: || exit mcopy $i a: || exit mcopy 312f97.rst a: || exit mcopy 312f97.sav a: || exit mdir a: || exit done case $OS in Sun*) eject;; *) echo "Remove floppy from drive" ;; esac echo done