A2osX/MAKE/MAKEFULL32.txt

122 lines
3.2 KiB
Plaintext
Raw Permalink Normal View History

NEW
PREFIX
AUTO 4,1
2019-12-09 16:31:47 +00:00
#!/bin/sh
#
2021-04-15 20:44:05 +00:00
# This script makes a proper FULLBOOT 32mb disk using the files
2019-12-06 02:16:55 +00:00
# found in a particular BUILD stored in /make/builds
#
2019-12-16 21:33:24 +00:00
. makefuncs
CALL CS
2021-04-15 20:44:05 +00:00
CALL TBOX " FULLBOOT 32mb Media Creator"
CALL PRINTXY 8 0 "You must have the correct image mounted on S7D2"
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
READ -P "WHICH BUILD NO: " B
IF [ -Z $B ]
ECHO "You did not enter any response."
ECHO
ECHO "Exiting"
EXIT
FI
2019-12-16 21:33:24 +00:00
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"
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 "Formatting Destination..."
2021-04-15 20:44:05 +00:00
format -B 65535 s7d2 FULLBOOT
ECHO "Making Directory Structure..."
2021-04-15 20:44:05 +00:00
md /FULLBOOT/bin
md /FULLBOOT/drv
md /FULLBOOT/etc
md /FULLBOOT/inc
md /FULLBOOT/lib
md /FULLBOOT/root
md /FULLBOOT/sbin
md /FULLBOOT/sys
md /FULLBOOT/sys/km
md /FULLBOOT/tmp
md /FULLBOOT/usr
md /FULLBOOT/usr/share
md /FULLBOOT/usr/share/adm
md /FULLBOOT/usr/share/extras
md /FULLBOOT/usr/share/help
md /FULLBOOT/usr/share/help/adm.help
md /FULLBOOT/usr/share/help/adm.help/enable.help
md /FULLBOOT/usr/share/help/csh.help
md /FULLBOOT/usr/share/help/sh.help
md /FULLBOOT/var
md /FULLBOOT/var/log
md /FULLBOOT/var/www
ECHO "Copying Files..."
2019-12-06 02:16:55 +00:00
FOR FILE IN (fullfiles)
2021-04-15 20:44:05 +00:00
cp -Q ${SRC}/${FILE} /FULLBOOT/${FILE}
NEXT
2021-04-15 20:44:05 +00:00
cp -Q -Y -R ${SRC}/srv/www/* /FULLBOOT/var/www
cp -Q -Y ${SRC}/PRODOS.FX /FULLBOOT/ProDOS
cp -Q -Y ${SRC}/PRODOS.FX /FULLBOOT/usr/share/extras
cp -Q -Y ${SRC}/PRODOS.FX.PAKED /FULLBOOT/usr/share/extras
cp -Q -Y ${SRC}/PRODOS.203TC /FULLBOOT/usr/share/extras
2021-06-07 14:05:05 +00:00
cp -Q -Y /MAKE/assets/NS.CLOCK.SYSTEM /FULLBOOT/usr/share/extras
2021-04-15 20:44:05 +00:00
cp -Q -Y -R /MAKE/usr/share/help/* /FULLBOOT/usr/share/help
cp -Q -Y initboot /FULLBOOT/etc/init
ECHO "Welcome to A2osX!" > /FULLBOOT/etc/issue
ECHO >> /FULLBOOT/etc/issue
ECHO $IM >> /FULLBOOT/etc/issue
2021-07-09 15:35:53 +00:00
echo "#A2osX Build Verion" > /FULLBOOT/etc/version
echo "${B}" >> /FULLBOOT/etc/version
2021-04-15 20:44:05 +00:00
cp -Q tcpip.conf /FULLBOOT/etc/tcpip.conf
cp -Q profile /FULLBOOT/root/profile
cp -q helloworld.s /FULLBOOT/root/helloworld.s
2021-07-07 17:31:08 +00:00
cp -q /MAKE/assets/Basic /FULLBOOT/bin/Basic
2021-04-15 20:44:05 +00:00
cp -q /MAKE/SCASM3.SYSTEM /FULLBOOT/bin/SC3
cp -q /MAKE/assets/PRODOS242/COPYIIPLUS.8.4 /FULLBOOT/bin/CP2Plus
2021-07-07 17:31:08 +00:00
cp -q /MAKE/usr/share/adm/adm /FULLBOOT/bin/adm
cp -q /MAKE/usr/share/adm/help /FULLBOOT/bin/help
cp -q /MAKE/usr/share/adm/update /FULLBOOT/usr/share/adm/update
2021-04-15 20:44:05 +00:00
ECHO "FULLBOOT 32mb Disk Created!"
MAN
TEXT /MAKE/USR/SHARE/MAKE/MAKEFULL32