#
#####Message texts######
set instr = "Please answer Y or N to the following questions."
set mesg1 = "Enable the TRFS option (Transparent Remote File System)"
set mesg2 = "Enable the ENET option (boot off network)"
set mesg3 = "Enable the QUOTA option (user disk quotas)"
set mesg4 = "Enable the VT option (video terminal--graphics)"
########################
cp opt_plate opt_plate.sav

echo $instr
echo

					# handle TRFS
echo -n $mesg1'? '
set TRFS = ($<)
if (($TRFS == 'y')|($TRFS == 'Y')) then
	echo -n \$\{TRFS\}' ' >> opt_plate
endif
					# handle ENET
echo -n $mesg2'? '
set ENET = ($<)
if (($ENET == 'y')|($ENET == 'Y')) then
	echo -n \$\{ENET\}' ' >> opt_plate
endif
					# handle QUOTA
echo -n $mesg3'? '
set QUOTA = ($<)
if (($QUOTA == 'y')|($QUOTA == 'Y')) then
	echo -n \$\{QUOTA\}' ' >> opt_plate
endif

					# handle VT
echo -n $mesg4'? '
set VT = ($<)
if (($VT == 'y')|($VT == 'Y')) then
	echo -n \$\{VT\}' ' >> opt_plate
endif

echo ' ' >> opt_plate
echo ' ' >> opt_plate

awk -f opt_top Makefile > temp
cat opt_plate >> temp
awk -f opt_bot Makefile >> temp

mv temp Makefile

mv opt_plate.sav opt_plate
