BF="/bib.cpo"
FL=${TMPDIR=.}/fl$$.tmp
DR=
FU=69
trap 'rm -f $FL;exit' 0 1 2 3 4 14
rm -f $FL
echo "\cdrive for archive (a, b) "
read x
DR=$x
echo "$DR"
:
echo "\csources (yes, no) "
read x
case $x in
	y*) ktree -d $PUBKIN -S "*/PD/*" | sort > $FL;vi +1 $FL;;
	*) 	ktree -d $PUBKIN -S "*/SRC/*" | sort > $FL;;
esac
:
cat - <<\END >> $FL
c:/autoexec.bat
c:/config.sys
c:/etc/passwd
c:/etc/profile.ksh
c:/etc/rc.ksh
c:/etc/rc.ksh
c:/ex.rc
c:/profile.ksh
c:/profile.ksh
END
:
(cd $HOME;mkstobat)
echo "<archive> $DR:$BF"
echo "\c<first disk>? "
read x
cat - <<\END >> $DR:/install.bat
copy a:batsaver.exe c:
copy a:cpio.exe c:
c:batsaver.exe
echo "archive is a:$BF"
c:cpio.exe -icvdmB < a:$BF
END
:
cp $XRK/batsaver.exe $DR:
cp c:/bin/cpio.exe $DR:
cpio -ocvB < $FL > $DR:$BF
