OpenTTD / OpenSFX

Sound Base Set for OpenTTD
Other
15 stars 11 forks source link

Makefile: drop usage of 'which' #49

Closed thesamesam closed 2 years ago

thesamesam commented 2 years ago

which is an external command which isn't required by POSIX.

Debian and other distributions (like Gentoo!) are looking to drop it from their base set of packages.

Switch to command -v which should always work instead.

Signed-off-by: Sam James sam@gentoo.org

orudge commented 2 years ago

In terms of code changes, this seems fine. Could you amend the commit title to meet with the commit checker requirements please? (e.g. "Change: Drop usage of 'which' in Makefile")

thesamesam commented 2 years ago

Done and thank you.

thesamesam commented 2 years ago

Thanks!