	.ENABLE SUBSTITUTION
	.DISABLE LOWERCASE
;
;	BUILD MULTI-USER SHELL ON '<DATE>' AT '<TIME>'
;
	.TESTFILE SH.W
	.IF <FILERR> = 1 .GOTO C1
;
;	You must place a copy of sh.w in this UIC before mushbld can
;	continue.  The following command will do the trick:
;
;	shl -c get /ddn/307,33/sh.tcs sh.w
;
;	The command file will exit to permit you to do this.
;
	.EXIT
.C1:
	.ASKS BIN TOOLS BINARY DIRECTORY [ G,M - DEFAULT: 105,1 ]
	.IF <STRLEN> = 0 .SETS BIN "105,1"
	.ASKS USR TOOLS USR DIRECTORY [ G,M - DEFAULT: 105,2 ]
	.IF <STRLEN> = 0 .SETS USR "105,2"
	PIP MUSH.*;*/DE/NM,SHMU.*;*,ROSH.*;*,SH.OBJ;*
	.ASK FPP BUILD MUSH.TSK /FP
	.SETS FPSW "/FP"
	.IFF FPP .SETS FPSW "/-FP"
	.OPEN SHMU.TKB
	.DATA SHMU/MU/CP'FPSW'=
	.DATA SH.OBJ
	.DATA ST0:['BIN']RLIB/LB:.MAIN.
	.DATA ST0:['BIN']RLIB/LB
	.CLOSE
	PIP SHMU.TKB/AP=ST0:['BIN']TOOLS.TKB
;
;	HERE IS THE TKB COMMAND FILE FOR BUILDING SHMU
;
	PIP TI:=SHMU.TKB
	.OPEN MUSH.SH
	.DATA AR X SH.W
	.DATA RC -CV SH.R
	.DATA AR T SH.W | RM
	.DATA TKB @SHMU.TKB
	.DATA MUBLD -DV SH
	.CLOSE
;
;	WE ARE NOW FIRING UP THE SHELL SCRIPT TO BUILD MUSH.TSK.
;	THIS TAKES ABOUT 10 MINUTES
;
;	MUSH.TSK BUILD START AT '<TIME>'
;
	SHL -V MUSH.SH
;
;	MUSH.TSK BUILD STOP  AT '<TIME>'
;
;	NOW YOU HAVE TWO TASK IMAGES: MUSH.TSK AND ROSH.TSK
;
;	THE SUGGESTED PROCEDURE FROM HERE IS AS FOLLOWS
;
;	1. YOU MUST VMR A PARTITION NAMED ROSH OF THE SIZE SPECIFIED
;	   IN THE SOURCE FILES YOU HAVE SEEN ABOVE INTO YOUR SYSTEM
;	   IMAGE.
;
;	2. PIP ST0:['USR']SH.TSK=MUSH.TSK
;	3. PIP ST0:['USR']*.*=ROSH.TSK,ROSH.STB
;	4. ADD THE FOLLOWING LINE TO YOUR TOOLS.CMD STARTUP FILE
;
;		INS ['USR']ROSH
;
;	NOW WHENEVER ANYONE INVOKES SH, IT WILL BE FOUND IN ['USR'],
;	AND ALL COPIES WILL SHARE THE READ-ONLY CODE IN ROSH
