mirror of
https://github.com/a2stuff/prodos-path.git
synced 2024-12-28 04:33:17 +00:00
28 lines
568 B
Bash
Executable File
28 lines
568 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Use Cadius to create a disk image for distribution
|
|
# https://github.com/mach-kernel/cadius
|
|
|
|
set -e
|
|
|
|
PACKDIR=$(mktemp -d)
|
|
IMGFILE="out/prodos-path.po"
|
|
VOLNAME="path"
|
|
|
|
rm -f "$IMGFILE"
|
|
cadius CREATEVOLUME "$IMGFILE" "$VOLNAME" 140KB --no-case-bits --quiet
|
|
|
|
add_file () {
|
|
cp "$1" "$PACKDIR/$2"
|
|
cadius ADDFILE "$IMGFILE" "/$VOLNAME" "$PACKDIR/$2" --no-case-bits --quiet
|
|
}
|
|
|
|
add_file "out/path.BIN" "path#062000"
|
|
for file in $(cat COMMANDS); do
|
|
add_file "out/${file}.CMD" "${file}#F04000"
|
|
done
|
|
|
|
rm -r "$PACKDIR"
|
|
|
|
cadius CATALOG "$IMGFILE"
|