We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4953

Summary: On Windows, sdl2-config should be written in something other than bash
Product: SDL Reporter: Michael J. Walsh <yoyolives>
Component: buildAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2    
Version: don't know   
Hardware: All   
OS: Windows (All)   
Attachments: link script to invoke cscript.exe
a javascript which imitates it's bash namesake

Description Michael J. Walsh 2020-01-18 01:03:50 UTC
I'd like to propose that in the Windows version of SDL, sdl2-config should be written in natively supported script system, like a batch file or Windows Script Host script.

I appreciate bash can work on Windows in wsl, cygwin, msys2 and probably others, but it's still not universally available.
Comment 1 Michael J. Walsh 2020-01-18 01:06:44 UTC
Created attachment 4169 [details]
link script to invoke cscript.exe

I'm attaching two documents:

sdl2-config.bat - a link script to invoke cscript.exe, and

sdl2-config.script - a javascript which imitates it's bash namesake. The only difference is that it assumes the prefix is the script's parent folder so if the script is in:

C:\Users\Shared\Downloads\SDL-ver2\bin

the prefix is set as

C:\Users\Shared\Downloads\SDL-ver2
Comment 2 Michael J. Walsh 2020-01-18 01:08:23 UTC
Created attachment 4170 [details]
a javascript which imitates it's bash namesake