A2osX/MAKE/MAKEMINI.txt

93 lines
2.0 KiB
Plaintext
Raw Normal View History

2019-05-01 17:46:30 +00:00
NEW
PREFIX
AUTO 4,1
#!/BIN/SH
#
# This script makes a proper ABOOT (140K) disk using the files
# found in a particular BUILD stored in /MAKE/BUILDS
#
. MAKEFUNCS
CALL CS
CALL TBOX "MINIBOOT (140K Floppy) Media Creator"
CALL PRINTXY 8 0 "You must have the correct 140K image mounted on S6D1"
ECHO "\n"
READ -P "Do you want to proceed (Y/N)? " P
SWITCH $P
CASE Y
CASE y
ECHO
BREAK
DEFAULT
ECHO "\n\nExiting.\n"
EXIT
END
ECHO
READ -P "WHICH BUILD NO: " B
IF [ -Z $B ]
ECHO "You did not enter any response."
ECHO
ECHO "Exiting"
EXIT
FI
SET SRC = "/MAKE/BUILDS/BUILD${B}"
IF [ -D ${SRC} ]
ECHO "\n\nFound Valid BUILD\n"
ELSE
ECHO "\n\nValid BUILD not found."
ECHO
ECHO "Exiting"
EXIT
FI
ECHO "Is this a (R)elease, (C)andidate or (S)table Build\n"
READ -P "ENTER R C or S: " RCS
IF [ -Z $RCS ]
ECHO "You did not enter any response."
ECHO
ECHO "Exiting"
EXIT
FI
SWITCH $RCS
CASE r
CASE R
SET IM = "Release Build No. ${B}"
BREAK
CASE c
CASE C
SET IM = "Release Candidate Build No. ${B}"
BREAK
CASE s
CASE S
SET IM = "Stable Release Build No. ${B}"
BREAK
DEFAULT
ECHO "You did not enter a valid response."
ECHO "You must enter only one of the characters R C or S!"
ECHO
ECHO "Exiting"
EXIT
END
ECHO "\n\nFormatting Destination..."
FORMAT -1 s6d1 MINIBOOT
2019-10-09 02:34:14 +00:00
ECHO "Making Directory Structure..."
MD /MINIBOOT/BIN
MD /MINIBOOT/DRV
MD /MINIBOOT/ETC
MD /MINIBOOT/LIB
MD /MINIBOOT/ROOT
MD /MINIBOOT/SBIN
MD /MINIBOOT/SYS
2019-10-09 02:34:14 +00:00
ECHO "Copying Files..."
FOR FILE IN (MINIFILES)
CP -Q ${SRC}/${FILE} /MINIBOOT/${FILE}
NEXT
CP -Q -Y /MAKE/ASSETS/PDOS203TC/PRODOS /MINIBOOT
CP -Q -Y INITBOOT /MINIBOOT/ETC/INIT
ECHO "Welcome to A2osX!" > /MINIBOOT/ETC/ISSUE
ECHO >> /MINIBOOT/ETC/ISSUE
ECHO $IM >> /MINIBOOT/ETC/ISSUE
CP -Q TCPIP.CONF /MINIBOOT/ETC/TCPIP.CONF
CP -Q PROFILE /MINIBOOT/ROOT/PROFILE
ECHO "MINIBOOT Disk Created!"
2019-05-01 17:46:30 +00:00
MAN
TEXT /MAKE/USR/SHARE/MAKE/MAKEMINI