mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-22 16:31:07 +00:00
128 lines
3.3 KiB
Plaintext
128 lines
3.3 KiB
Plaintext
|
NEW
|
|||
|
PREFIX
|
|||
|
AUTO 4,1
|
|||
|
#!/BIN/SH
|
|||
|
#
|
|||
|
# This script builds ALL media images in /RAM3
|
|||
|
# which can then be used to make actual media and
|
|||
|
# pak files that can be netinstalled or used for updates
|
|||
|
#
|
|||
|
# This script must be passed two parameters, the build no
|
|||
|
# and if its creating Release, Candidate or Stable
|
|||
|
# If param 2 is missing, we assume stable.
|
|||
|
#
|
|||
|
switch $#
|
|||
|
case 0
|
|||
|
echo "\nNo Argument specified - exiting"
|
|||
|
exit
|
|||
|
break
|
|||
|
case 2
|
|||
|
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
|
|||
|
DEFAULT
|
|||
|
SET IM = "Stable Release Build No. ${B}"
|
|||
|
BREAK
|
|||
|
END
|
|||
|
case 1
|
|||
|
SET SRC = "/MAKE/BUILDS/BUILD${B}"
|
|||
|
IF [ -D ${SRC} ]
|
|||
|
ELSE
|
|||
|
ECHO "\n\nValid BUILD ${B} not found. Exiting!"
|
|||
|
EXIT
|
|||
|
FI
|
|||
|
break
|
|||
|
default
|
|||
|
echo \nToo Many Arguments\n
|
|||
|
exit
|
|||
|
end
|
|||
|
#
|
|||
|
# FullBoot Media
|
|||
|
#
|
|||
|
md /RAM3/FULLBOOT
|
|||
|
md /RAM3/FULLBOOT/bin
|
|||
|
md /RAM3/FULLBOOT/drv
|
|||
|
md /RAM3/FULLBOOT/etc
|
|||
|
md /RAM3/FULLBOOT/inc
|
|||
|
md /RAM3/FULLBOOT/lib
|
|||
|
md /RAM3/FULLBOOT/root
|
|||
|
md /RAM3/FULLBOOT/sbin
|
|||
|
md /RAM3/FULLBOOT/sys
|
|||
|
md /RAM3/FULLBOOT/sys/km
|
|||
|
md /RAM3/FULLBOOT/tmp
|
|||
|
md /RAM3/FULLBOOT/usr
|
|||
|
md /RAM3/FULLBOOT/usr/share
|
|||
|
md /RAM3/FULLBOOT/usr/share/adm
|
|||
|
md /RAM3/FULLBOOT/usr/share/extras
|
|||
|
md /RAM3/FULLBOOT/usr/share/help
|
|||
|
md /RAM3/FULLBOOT/usr/share/help/adm.help
|
|||
|
md /RAM3/FULLBOOT/usr/share/help/adm.help/enable.help
|
|||
|
md /RAM3/FULLBOOT/usr/share/help/csh.help
|
|||
|
md /RAM3/FULLBOOT/usr/share/help/sh.help
|
|||
|
md /RAM3/FULLBOOT/var
|
|||
|
md /RAM3/FULLBOOT/var/log
|
|||
|
md /RAM3/FULLBOOT/var/www
|
|||
|
ECHO "Copying Files..."
|
|||
|
FOR FILE IN (fullfiles)
|
|||
|
cp -Q ${SRC}/${FILE} /RAM3/FULLBOOT/${FILE}
|
|||
|
NEXT
|
|||
|
cp -Q -Y -R ${SRC}/srv/www/* /RAM3/FULLBOOT/var/www
|
|||
|
cp -Q -Y ${SRC}/PRODOS.FX /RAM3/FULLBOOT/ProDOS
|
|||
|
cp -Q -Y ${SRC}/PRODOS.FX /RAM3/FULLBOOT/usr/share/extras
|
|||
|
cp -Q -Y ${SRC}/PRODOS.FX.PAKED /RAM3/FULLBOOT/usr/share/extras
|
|||
|
cp -Q -Y ${SRC}/PRODOS.203TC /RAM3/FULLBOOT/usr/share/extras
|
|||
|
cp -Q -Y ${SRC}/NS.CLOCK.SYSTEM /RAM3/FULLBOOT/usr/share/extras
|
|||
|
cp -Q -Y -R /MAKE/usr/share/help/* /RAM3/FULLBOOT/usr/share/help
|
|||
|
cp -Q -Y initboot /RAM3/FULLBOOT/etc/init
|
|||
|
ECHO "Welcome to A2osX!" > /RAM3/FULLBOOT/etc/issue
|
|||
|
ECHO >> /RAM3/FULLBOOT/etc/issue
|
|||
|
ECHO $IM >> /RAM3/FULLBOOT/etc/issue
|
|||
|
cp -Q tcpip.conf /RAM3/FULLBOOT/etc/tcpip.conf
|
|||
|
cp -Q profile /RAM3/FULLBOOT/root/profile
|
|||
|
cp -q helloworld.s /RAM3/FULLBOOT/root/helloworld.s
|
|||
|
cp -q /MAKE/assets/PRODOS242/BASIC.SYSTEM /RAM3/FULLBOOT/bin/Basic
|
|||
|
cp -q /MAKE/SCASM3.SYSTEM /RAM3/FULLBOOT/bin/SC3
|
|||
|
cp -q /MAKE/assets/PRODOS242/COPYIIPLUS.8.4 /RAM3/FULLBOOT/bin/CP2Plus
|
|||
|
pushd /RAM3/FULLBOOT
|
|||
|
pak ../fullboot.pak -r *
|
|||
|
popd
|
|||
|
#
|
|||
|
# Debug Media
|
|||
|
#
|
|||
|
md /RAM3/DEBUG
|
|||
|
md /RAM3/DEBUG/bin
|
|||
|
md /RAM3/DEBUG/drv
|
|||
|
md /RAM3/DEBUG/etc
|
|||
|
md /RAM3/DEBUG/lib
|
|||
|
md /RAM3/DEBUG/root
|
|||
|
md /RAM3/DEBUG/sbin
|
|||
|
md /RAM3/DEBUG/sys
|
|||
|
ECHO "Copying Files..."
|
|||
|
FOR FILE IN (debugfiles)
|
|||
|
cp -Q ${SRC}/${FILE} /debug/${FILE}
|
|||
|
NEXT
|
|||
|
cp -Q -Y ${SRC}/PRODOS.FX.PAKED /debug/ProDOS
|
|||
|
cp -Q -Y debuginit /debug/etc/init
|
|||
|
ECHO "Welcome to A2osX!" > /debug/etc/issue
|
|||
|
ECHO >> /debug/etc/issue
|
|||
|
ECHO $IM >> /debug/etc/issue
|
|||
|
ECHO >> /debug/etc/issue
|
|||
|
ECHO >> /debug/etc/issue
|
|||
|
ECHO "This is the Special DEBUG BOOT DISK" >> /debug/etc/issue
|
|||
|
ECHO >> /debug/etc/issue
|
|||
|
cp -Q tcpip.conf /debug/etc/tcpip.conf
|
|||
|
cp -Q debugprofile /debug/root/profile
|
|||
|
ECHO "debug Disk Created!"
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
MAN
|
|||
|
TEXT /MAKE/usr/share/make/makeimages
|