prodos-path/package.sh

29 lines
633 B
Bash
Raw Normal View History

2020-03-13 02:44:26 +00:00
#!/bin/bash
# Use Cadius to create a disk image for distribution
# https://github.com/mach-kernel/cadius
set -e
2020-03-13 03:46:45 +00:00
PACKDIR=$(mktemp -d)
2020-03-13 02:44:26 +00:00
IMGFILE="out/prodos-path.po"
VOLNAME="path"
rm -f "$IMGFILE"
cadius CREATEVOLUME "$IMGFILE" "$VOLNAME" 140KB --no-case-bits --quiet
2020-03-13 03:46:45 +00:00
add_file () {
cp "$1" "$PACKDIR/$2"
cadius ADDFILE "$IMGFILE" "/$VOLNAME" "$PACKDIR/$2" --no-case-bits --quiet
}
add_file "out/path.BIN" "path#062000"
add_file "out/bell.CMD" "bell#F04000"
add_file "out/echo.CMD" "echo#F04000"
add_file "out/hello.CMD" "hello#F04000"
2020-06-07 15:02:08 +00:00
add_file "out/online.CMD" "online#F04000"
2020-03-13 02:44:26 +00:00
rm -r "$PACKDIR"
cadius CATALOG "$IMGFILE"