2019-10-31 17:11:23 +00:00
|
|
|
|
NEW
|
|
|
|
|
PREFIX
|
|
|
|
|
AUTO 4,1
|
2019-12-09 16:31:47 +00:00
|
|
|
|
#!/bin/sh
|
2019-10-31 17:11:23 +00:00
|
|
|
|
#
|
|
|
|
|
# This script copies the latest BUILD (A2OSX.BUILD) to MAKE (A2OSX.MAKE)
|
|
|
|
|
# and then verifies/corrects that files are in the right locations to
|
|
|
|
|
# be used by other MAKE processes such as those for making disk images
|
|
|
|
|
#
|
2019-12-13 04:19:05 +00:00
|
|
|
|
. makefuncs
|
2019-10-31 17:11:23 +00:00
|
|
|
|
CALL CS
|
|
|
|
|
CALL TBOX " New BUILD File Copier"
|
|
|
|
|
# Check for BUILD and MAKE online
|
|
|
|
|
IF [ -D "/A2OSX.BUILD" ]
|
|
|
|
|
ELSE
|
|
|
|
|
ECHO "A2OSX.BUILD is not online or available."
|
|
|
|
|
ECHO
|
|
|
|
|
ECHO "Exiting"
|
|
|
|
|
EXIT
|
|
|
|
|
FI
|
|
|
|
|
IF [ -D "/MAKE" ]
|
|
|
|
|
ELSE
|
|
|
|
|
ECHO "A2OSX.MAKE is not online or available."
|
|
|
|
|
ECHO
|
|
|
|
|
ECHO "Exiting"
|
|
|
|
|
EXIT
|
|
|
|
|
FI
|
|
|
|
|
CALL PRINTXY 8 0 "BUILD and MAKE volumes found."
|
|
|
|
|
ECHO "\n"
|
|
|
|
|
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 Existing BUILD ${B}\n"
|
|
|
|
|
ECHO
|
|
|
|
|
ECHO "Exiting"
|
|
|
|
|
EXIT
|
|
|
|
|
ELSE
|
|
|
|
|
ECHO "\n\nNo BUILD ${B} found."
|
|
|
|
|
ECHO
|
|
|
|
|
ECHO "Creating Directory"
|
|
|
|
|
FI
|
|
|
|
|
MD /MAKE/BUILDS/BUILD${B}
|
|
|
|
|
ECHO "\nCopying Files..."
|
2019-12-10 16:34:07 +00:00
|
|
|
|
cp -Q -R /A2OSX.BUILD/* /MAKE/BUILDS/BUILD${B}
|
2019-10-31 17:11:23 +00:00
|
|
|
|
ECHO "\nBUILD $B Copied!"
|
2021-03-13 16:33:36 +00:00
|
|
|
|
cd /MAKE/BUILDS/BUILD${B}
|
|
|
|
|
pakme PRODOS.FX PRODOS.FX.PAKED
|
|
|
|
|
cp PRODOS.FX* /MAKE
|
|
|
|
|
cd sys
|
|
|
|
|
md km
|
|
|
|
|
cp km* km
|
|
|
|
|
pakme kernel kernel.PAKED
|
|
|
|
|
echo "Fixed Up Files to make images"
|
2019-10-31 17:11:23 +00:00
|
|
|
|
ECHO "PREFIX BUILDS/BUILD${B}" > /MAKE/BLEED
|
|
|
|
|
ECHO "-A2OSX.SYSTEM" >> /MAKE/BLEED
|
|
|
|
|
ECHO "BLEED file updated! Process Complete. Exiting.\n"
|
|
|
|
|
MAN
|
2019-12-13 04:19:05 +00:00
|
|
|
|
TEXT /MAKE/USR/SHARE/MAKE/copybuild
|