Use "command -v" instead of "which"

The "which" command has been deprecated in debianutils, and while other
distributions still ship it, "command -v" is in POSIX and implemented
without external packages.
This commit is contained in:
mid-kid
2025-03-07 17:20:42 +01:00
parent 4d6c3e2975
commit 6d6d5938e5

View File

@@ -35,7 +35,7 @@ pokecrystal11_vc_obj := $(rom_obj:.o=11_vc.o)
### Build tools
ifeq (,$(shell which sha1sum))
ifeq (,$(shell command -v sha1sum 2>/dev/null))
SHA1 := shasum
else
SHA1 := sha1sum