mirror of
https://github.com/a2stuff/prodos-drivers.git
synced 2024-09-11 23:54:39 +00:00
7bbc96924b
This is an alternate approach proposed by Sean Nolan in 1987 which allows placing the driver files in a subdirectory of the root volume to avoid clutter and file ordering issues. Only a SETUP.SYSTEM file is needed at the top level, and the drivers go into a SETUPS/ directory. All drivers here (except QUIT.SYSTEM and SETUP.SYSTEM itself) have alternate forms built into the /DRIVERS/SETUPS/ directory as XYZ.SETUP instead of XYZ.SYSTEM. If you choose to use SETUP.SYSTEM, place these .SETUP files in your SETUPS/ directory. The naming doesn't matter - any SYS or BIN file can be used - but this convention makes distribution easier. These .SETUP files do **NOT** chain to the next file - that's handled by SETUP.SYSTEM itself. Resolves #16
60 lines
2.0 KiB
Bash
Executable File
60 lines
2.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Use Cadius to create a disk image for distribution
|
|
# https://github.com/mach-kernel/cadius
|
|
|
|
set -e
|
|
|
|
PACKDIR=$(mktemp -d)
|
|
IMGFILE="prodos-drivers.po"
|
|
VOLNAME="drivers"
|
|
|
|
rm -f "$IMGFILE"
|
|
cadius CREATEVOLUME "$IMGFILE" "$VOLNAME" 140KB --no-case-bits --quiet
|
|
cadius CREATEFOLDER "$IMGFILE" "/$VOLNAME/SETUPS" --no-case-bits --quiet
|
|
|
|
add_file () {
|
|
cp "$1" "$PACKDIR/$2"
|
|
cadius ADDFILE "$IMGFILE" "$3" "$PACKDIR/$2" --no-case-bits --quiet
|
|
}
|
|
|
|
# Drivers
|
|
|
|
for file in \
|
|
"bbb" "buhbye" "bye" "selector" \
|
|
"clock" "cricket" "dclock" "fn.clock" "ns.clock" "romxrtc" \
|
|
"ram.drv" \
|
|
"zipchip" \
|
|
"me.first" "pause"; do
|
|
add_file "out/$file.system.SYS" "$file.system#FF0000" "/$VOLNAME"
|
|
add_file "out/$file.setup.SYS" "$file.setup#FF0000" "/$VOLNAME/SETUPS"
|
|
done
|
|
add_file "out/setup.system.SYS" "setup.system#FF0000" "/$VOLNAME"
|
|
add_file "out/quit.system.SYS" "quit.system#FF0000" "/$VOLNAME"
|
|
|
|
# Utilities
|
|
|
|
add_file "out/date.BIN" "date#062000" "/$VOLNAME"
|
|
|
|
cadius CREATEFOLDER "$IMGFILE" "/$VOLNAME/CRICKET.UTIL" --no-case-bits --quiet
|
|
add_file "out/cricket.util/set.datetime.BIN" "set.datetime#062000" "/$VOLNAME/CRICKET.UTIL"
|
|
add_file "out/cricket.util/set.date.BIN" "set.date#062000" "/$VOLNAME/CRICKET.UTIL"
|
|
add_file "out/cricket.util/set.time.BIN" "set.time#062000" "/$VOLNAME/CRICKET.UTIL"
|
|
add_file "out/cricket.util/test.BIN" "test#062000" "/$VOLNAME/CRICKET.UTIL"
|
|
|
|
cadius CREATEFOLDER "$IMGFILE" "/$VOLNAME/NSCLOCK.UTIL" --no-case-bits --quiet
|
|
add_file "out/nsclock.util/set.datetime.BIN" "set.datetime#062000" "/$VOLNAME/NSCLOCK.UTIL"
|
|
|
|
|
|
|
|
cadius CREATEFOLDER "$IMGFILE" "/$VOLNAME/TEXTCOLORS" --no-case-bits --quiet
|
|
cadius CREATEFOLDER "$IMGFILE" "/$VOLNAME/SETUPS/TEXTCOLORS" --no-case-bits --quiet
|
|
for file in a2green bw deepblue gray gsblue mint pink wb; do
|
|
add_file "out/${file}.system.SYS" "${file}.system#FF0000" "/$VOLNAME/TEXTCOLORS"
|
|
add_file "out/${file}.setup.SYS" "${file}.setup#FF0000" "/$VOLNAME/TEXTCOLORS/SETUPS"
|
|
done
|
|
|
|
rm -r "$PACKDIR"
|
|
|
|
cadius CATALOG "$IMGFILE"
|