A2osX/MAKE/MAKEUPDATE.txt
2021-07-07 13:31:08 -04:00

66 lines
1.4 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 an UPDATE.PAK file using the files
# found in a particular BUILD stored in /make/builds
#
. makefuncs
CALL CS
CALL TBOX " Update PAK Creator"
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
rm -r -q /MAKE/update
md /MAKE/update
md /MAKE/update/bin
md /MAKE/update/drv
md /MAKE/update/inc
md /MAKE/update/lib
md /MAKE/update/root
md /MAKE/update/sbin
md /MAKE/update/sys
md /MAKE/update/sys/km
md /MAKE/update/usr
md /MAKE/update/usr/share
md /MAKE/update/usr/share/adm
ECHO "Copying Files..."
FOR FILE IN (updatefiles)
cp -Y -Q ${SRC}/${FILE} /MAKE/update/${FILE}
NEXT
cp -q /MAKE/assets/Basic /MAKE/update/bin/Basic
cp -Y -Q ${SRC}/PRODOS.FX /MAKE/update/ProDOS
cp -q /MAKE/usr/share/adm/adm /MAKE/update/bin/adm
cp -q /MAKE/usr/share/adm/help /MAKE/update/bin/help
cp -q /MAKE/usr/share/adm/update /MAKE/update/usr/share/adm/update
cd /MAKE/update
pak update.${B} -r *
ECHO "Update Created!"
MAN
TEXT /MAKE/USR/SHARE/MAKE/MAKEUPDATE