#sccs	"@(#)flopsys/lbin:mkinsxxx	1.2"

#
#  mkinsxxx  -  Build install floppy set for non applications (DOC and DEV)
#
#  Usage:  mkinsxxx <APP>
#
#	Where <APP> is the code for the set (DOC or DEV)
#

if [ \! $1 ]
then
	echo "Usage:  mkinsxxx <Installation set name>"
	exit 1
fi

DIR=/ROOT/usr/install/$1

if [ \! -d $DIR ]
then
	echo "Installation set $1 not found"
	exit 1
fi

cd $DIR
cp Files Install Name Remove /ROOT
echo "./Size" > /tmp/t
echo "./Files" >> /tmp/t
echo "./Install" >> /tmp/t
echo "./Name" >> /tmp/t
echo "./Remove" >> /tmp/t

cd /ROOT

echo "CREATING Size File\n"
touch ./Size
cat /tmp/t Files | cpio -ocB > /dev/null 2>/tmp/Size$$
set `cat /tmp/Size$$`
echo $1 > ./Size

echo "CREATING `cat $DIR/Name`"
echo "\tInsert first disk of set and type RETURN"
read line

cat /tmp/t Files | cpio -ocB > /dev/rfp021
rm -f /tmp/Size$$ /tmp/t Files Install Name Remove Size
