sikthehedgehog / indigo

Indigo operating system
zlib License
57 stars 4 forks source link

Make /rom filesystem script to work on Windows #17

Closed sikthehedgehog closed 7 years ago

sikthehedgehog commented 7 years ago

The script that generates the /rom filesystem does this to get the file list:

exec("cd rom ; find -type f ; cd ..", $files);
exec("cd rom ; find -type d ; cd ..", $dirs);

Which fails spectacularly on any system that isn't POSIX. In particular, the find command on Windows is more like grep, which means it's impossible to build Indigo from Windows at the moment (assuming you don't go download a replacement tool that acts like POSIX's find).

Anyway, we should come up with the Windows equivalent of these lines so we can get the script to work on Windows.

sikthehedgehog commented 7 years ago

Hopefully this works: 7ac22b37bca8a12a8cc192e0e0f5d276fd49c66b