2020-03-12 20:15:18 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Use Cadius to create a disk image for distribution
|
|
|
|
# https://github.com/mach-kernel/cadius
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2020-03-12 20:45:52 -07:00
|
|
|
PACKDIR=$(mktemp -d)
|
2021-07-23 08:56:14 -07:00
|
|
|
IMGFILE="prodos-drivers.po"
|
2020-03-12 20:45:52 -07:00
|
|
|
VOLNAME="drivers"
|
2020-03-12 20:15:18 -07:00
|
|
|
|
|
|
|
rm -f "$IMGFILE"
|
|
|
|
cadius CREATEVOLUME "$IMGFILE" "$VOLNAME" 140KB --no-case-bits --quiet
|
2020-12-20 20:30:30 -08:00
|
|
|
cadius CREATEFOLDER "$IMGFILE" "/$VOLNAME/CRICKET.UTIL" --no-case-bits --quiet
|
2020-03-12 20:15:18 -07:00
|
|
|
|
|
|
|
add_file () {
|
|
|
|
cp "$1" "$PACKDIR/$2"
|
2020-12-20 20:30:30 -08:00
|
|
|
cadius ADDFILE "$IMGFILE" "$3" "$PACKDIR/$2" --no-case-bits --quiet
|
2020-03-12 20:15:18 -07:00
|
|
|
}
|
|
|
|
|
2021-07-23 08:56:14 -07:00
|
|
|
add_file "cricket/out/cricket.system.SYS" "cricket.system#FF0000" "/$VOLNAME"
|
|
|
|
add_file "cricket/out/date.BIN" "date#062000" "/$VOLNAME/CRICKET.UTIL"
|
|
|
|
add_file "cricket/out/set.date.BIN" "set.date#062000" "/$VOLNAME/CRICKET.UTIL"
|
|
|
|
add_file "cricket/out/set.time.BIN" "set.time#062000" "/$VOLNAME/CRICKET.UTIL"
|
|
|
|
add_file "cricket/out/test.BIN" "test#062000" "/$VOLNAME/CRICKET.UTIL"
|
|
|
|
add_file "dclock/out/dclock.system.SYS" "dclock.system#FF0000" "/$VOLNAME"
|
|
|
|
add_file "ns.clock/out/ns.clock.system.SYS" "ns.clock.system#FF0000" "/$VOLNAME"
|
|
|
|
add_file "quit/out/quit.system.SYS" "quit.system#FF0000" "/$VOLNAME"
|
|
|
|
add_file "ram.drv/out/ram.drv.system.SYS" "ram.drv.system#FF0000" "/$VOLNAME"
|
|
|
|
add_file "selectors/out/bbb.system.SYS" "bbb.system#FF0000" "/$VOLNAME"
|
|
|
|
add_file "selectors/out/buhbye.system.SYS" "buhbye.system#FF0000" "/$VOLNAME"
|
|
|
|
add_file "selectors/out/bye.system.SYS" "bye.system#FF0000" "/$VOLNAME"
|
|
|
|
add_file "selectors/out/selector.system.SYS" "selector.system#FF0000" "/$VOLNAME"
|
2020-03-12 20:15:18 -07:00
|
|
|
|
|
|
|
rm -r "$PACKDIR"
|
|
|
|
|
|
|
|
cadius CATALOG "$IMGFILE"
|