mirror of
https://github.com/Pixinn/Rgb2Hires.git
synced 2026-04-25 10:18:06 +00:00
Add helper scripts
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
# Adds the required files to the provided disk.dsk
|
||||
# usage: add_to_disk PATH_TO_APPLECOMMANDER.jar PATH_TO_BINARY.a2 PATH_TO_PICTURE PATH_TO_DISK
|
||||
|
||||
set -e
|
||||
|
||||
if (( $# != 4 )); then
|
||||
echo "Bad number of arguments"
|
||||
echo "usage: add_to_disk.sh PATH_TO_APPLECOMMANDER.jar PATH_TO_BINARY.a2 PATH_TO_PICTURE PATH_TO_DISK"
|
||||
exit
|
||||
fi
|
||||
|
||||
echo " . revoving previous instance of DISPLAY form the disk"
|
||||
java -jar ${1} -d ${4} DISPLAY
|
||||
|
||||
echo " .. adding DISPLAY to the disk"
|
||||
java -jar ${1} -cc65 ${4} DISPLAY BIN < ${2}
|
||||
|
||||
echo " . revoving previous instance of PICTURE form the disk"
|
||||
java -jar ${1} -d ${4} PICTURE
|
||||
|
||||
# echo " .. adding PICTURE to the disk"
|
||||
java -jar ${1} -cc65 ${4} PICTURE BIN < ${3}
|
||||
|
||||
echo "DONE."
|
||||
Reference in New Issue
Block a user