mirror of
https://github.com/a2stuff/prodos-drivers.git
synced 2024-12-20 22:30:36 +00:00
Add package script
This commit is contained in:
parent
ac4fccd420
commit
3b7b2c0b9c
@ -25,7 +25,7 @@ $(OUTDIR):
|
||||
clean:
|
||||
rm -f $(OUTDIR)/*.o
|
||||
rm -f $(OUTDIR)/*.list
|
||||
rm -f $(OUTDIR)/$(TARGETS)
|
||||
rm -f $(TARGETS)
|
||||
|
||||
$(OUTDIR)/%.o: %.s $(HEADERS)
|
||||
ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $<
|
||||
|
@ -29,7 +29,7 @@ $(OUTDIR):
|
||||
clean:
|
||||
rm -f $(OUTDIR)/*.o
|
||||
rm -f $(OUTDIR)/*.list
|
||||
rm -f $(OUTDIR)/$(TARGETS)
|
||||
rm -f $(TARGETS)
|
||||
|
||||
$(OUTDIR)/%.o: %.s $(HEADERS)
|
||||
ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $<
|
||||
|
@ -24,7 +24,7 @@ $(OUTDIR):
|
||||
clean:
|
||||
rm -f $(OUTDIR)/*.o
|
||||
rm -f $(OUTDIR)/*.list
|
||||
rm -f $(OUTDIR)/$(TARGETS)
|
||||
rm -f $(TARGETS)
|
||||
|
||||
$(OUTDIR)/%.o: %.s $(HEADERS)
|
||||
ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $<
|
||||
|
40
package.sh
Executable file
40
package.sh
Executable file
@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Use Cadius to create a disk image for distribution
|
||||
# https://github.com/mach-kernel/cadius
|
||||
|
||||
set -e
|
||||
|
||||
PACKDIR="out/package"
|
||||
FINFO="$PACKDIR/_FileInformation.txt"
|
||||
IMGFILE="out/prodos-path.po"
|
||||
VOLNAME="path"
|
||||
|
||||
mkdir -p "$PACKDIR"
|
||||
echo "" > "$FINFO"
|
||||
|
||||
# Create a new disk image.
|
||||
|
||||
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 "bbb/out/buhbye.system.SYS" "buhbye.system#FF0000"
|
||||
add_file "bbb/out/bye.system.SYS" "bye.system#FF0000"
|
||||
add_file "cricket/out/cricket.system.SYS" "cricket.system#FF0000"
|
||||
add_file "cricket/out/date.BIN" "date#062000"
|
||||
add_file "cricket/out/set.date.BIN" "set.date#062000"
|
||||
add_file "cricket/out/set.time.BIN" "set.time#062000"
|
||||
add_file "cricket/out/test.BIN" "test#062000"
|
||||
add_file "ns.clock/out/ns.clock.system.SYS" "ns.clock.system#FF0000"
|
||||
add_file "quit/out/quit.system.SYS" "quit.system#FF0000"
|
||||
add_file "ram.drv/out/ram.drv.system.SYS" "ram.drv.system#FF0000"
|
||||
|
||||
rm -r "$PACKDIR"
|
||||
|
||||
cadius CATALOG "$IMGFILE"
|
@ -24,7 +24,7 @@ $(OUTDIR):
|
||||
clean:
|
||||
rm -f $(OUTDIR)/*.o
|
||||
rm -f $(OUTDIR)/*.list
|
||||
rm -f $(OUTDIR)/$(TARGETS)
|
||||
rm -f $(TARGETS)
|
||||
|
||||
$(OUTDIR)/%.o: %.s $(HEADERS)
|
||||
ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $<
|
||||
|
@ -24,7 +24,7 @@ $(OUTDIR):
|
||||
clean:
|
||||
rm -f $(OUTDIR)/*.o
|
||||
rm -f $(OUTDIR)/*.list
|
||||
rm -f $(OUTDIR)/$(TARGETS)
|
||||
rm -f $(TARGETS)
|
||||
|
||||
$(OUTDIR)/%.o: %.s $(HEADERS)
|
||||
ca65 $(CAFLAGS) $(DEFINES) --listing $(basename $@).list -o $@ $<
|
||||
|
Loading…
Reference in New Issue
Block a user