mmaulwurff / typist.pk3

typing tutor mod for GZDoom
https://forum.zdoom.org/viewtopic.php?f=43&t=66042
GNU General Public License v3.0
22 stars 2 forks source link

Adding support for compilation on macOS #109

Open paulfioravanti opened 1 year ago

paulfioravanti commented 1 year ago

In my Typist.pk3 fork, I needed to make some changes in the compilation scripts in order to get compilation working on macOS.

Would you be interested in getting a pull request that integrates these changes into the current scripts? In order to keep original script lines in tact, I'm currently thinking perhaps some kind of branching code could be added like, for example:

scripts/import_clematis.sh

if [[ "$OSTYPE" == "darwin"* ]]; then
  find . -name "*.zs" -print0 | xargs -0 gsed -i 's/Clematis/tt_Clematis/g'
else
  find . -name "*.zs" -print0 | xargs --null sed -i 's/Clematis/tt_Clematis/g'
fi

Or, perhaps all the changes could go into a different set of files. Any opinions on this idea?