ericb59 / Fusion-C-v1.2

MSX C Library for SDCC compiler
Other
71 stars 7 forks source link

Linux script patches #6

Closed serpens-ignis closed 4 years ago

serpens-ignis commented 4 years ago

The library's automation scripts were made only for Windows and MacOS. I've modified them to work on my linux system and decided to upload the changes if you are interested. I've tested this on my Debian 10 machine but it should work on any other distro.

Working Folder/Makefile This called @SDCC , which is a problem as the linux shell is case sensitive. I've thus changed it to call @sdcc. The rest of the file was already completely compatible.

Working Folder/openMSX/emul_start.sh This file now checks the machine's OS and executes a script accordingly. On MacOS, that would be the original code. On Linux, it opens /opt/openMSX/bin/openmsx. This is most likely the location of openmsx, as the emulator can only be installed from source, and its makefile places the executable there. I've also made some syntax changes and removed the first line so this would work on any terminal emulator, not just bash.

ericb59 commented 4 years ago

Thank you for the updated script. It's very kind.