mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-24 14:31:05 +00:00
80 lines
1.7 KiB
Plaintext
80 lines
1.7 KiB
Plaintext
NEW
|
||
PREFIX
|
||
AUTO 4,1
|
||
#!/bin/sh
|
||
#
|
||
# 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
|
||
#
|
||
. makefuncs
|
||
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"
|
||
switch $#
|
||
case 0
|
||
read -p "Which Build No: " b
|
||
if [ -z $B ]
|
||
echo "Error: Empty response\n\n"
|
||
exit
|
||
fi
|
||
break
|
||
case 1
|
||
set B = $1
|
||
if [ -i $B ]
|
||
else
|
||
echo "\n\n Error: Non-Numeric Parameter \n\n"
|
||
exit
|
||
fi
|
||
break
|
||
default
|
||
echo "\n\n Error: Too Many Parameters \n\n"
|
||
exit
|
||
end
|
||
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..."
|
||
cp -Q -R /A2OSX.BUILD/* /MAKE/BUILDS/BUILD${B}
|
||
ECHO "\nBUILD $B Copied!"
|
||
cd /MAKE/BUILDS/BUILD${B}
|
||
pakme PRODOS.FX PRODOS.FX.PAKED
|
||
cp -q -y PRODOS.FX* /MAKE
|
||
cd sys
|
||
md km
|
||
cp km* km
|
||
rm -q km*
|
||
cp km/km.ramworks
|
||
pakme kernel kernel.PAKED
|
||
echo "Fixed Up Files to make images"
|
||
ECHO "PREFIX BUILDS/BUILD${B}" > /MAKE/BLEED
|
||
ECHO "-A2OSX.SYSTEM" >> /MAKE/BLEED
|
||
ECHO "BLEED file updated! Process Complete. Exiting.\n"
|
||
MAN
|
||
TEXT /MAKE/USR/SHARE/MAKE/copybuild
|