mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-20 13:23:08 +00:00
8 lines
286 B
Plaintext
8 lines
286 B
Plaintext
|
# $(if-success,<command>,<then>,<else>)
|
||
|
# Return <then> if <command> exits with 0, <else> otherwise.
|
||
|
if-success = $(shell,{ $(1); } >/dev/null 2>&1 && echo "$(2)" || echo "$(3)")
|
||
|
|
||
|
# $(success,<command>)
|
||
|
# Return y if <command> exits with 0, n otherwise
|
||
|
success = $(if-success,$(1),y,n)
|