b-em
b-em copied to clipboard
Extend makebem.bat to somehow include the correct version string
At the moment this is hard coded to Win32.
It's ugly, but something like this should work:
The hard part is not hard-coded a path to bash.exe!
Not quite the same thing but I have written a script mkcross.sh which will cross-compile B-Em for Windows running on a Linux host. It does rely on a reasonable number of other packages being installed in the MingW form. It does pick up the commit from git.
Ok, I didn't do much with this initially because I though bash, on Windows? But looking at it a fresh bash comes with git so if you've just cloned the repository then you have bash. I wonder if the answer is to just turn makebem.bat into makebem.sh, or have one involve the other, then we can avoid a temporary file.
See also https://github.com/stardot/b-em/issues/157