A2osX/MAKE/MAKEDEBUG.txt
2019-12-09 12:16:30 -05:00

70 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

NEW
PREFIX
AUTO 4,1
#!/bin/sh
#
# This script makes a proper debug (140K) disk using the files
# found in a particular BUILD stored in /make/builds
#
. MAKEFUNCS
CALL CS
CALL TBOX "debug (140K Floppy) Media Creator"
CALL PRINTXY 8 0 "You must have the correct 140K image mounted on /dev/s6d2"
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
SET IM = "DEBUG Build No. ${B}"
ECHO "\n\nFormatting Destination..."
FORMAT -1 s6d2 debug
ECHO "Making Directory Structure..."
md /debug/bin
md /debug/drv
md /debug/etc
md /debug/lib
md /debug/root
md /debug/sbin
md /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/MAKEDEBUG