mirror of
https://github.com/xcat2/xNBA.git
synced 2025-01-20 06:23:14 +00:00
[build] Don't assume the existence of "seq"
The "seq" command is GNU-specific; a BSD userland will not have it. Use POSIX-conforming "awk" instead. Reported-by: Joshua Oreman <oremanj@rwcr.net> Suggested-by: Stefan Hajnoczi <stefanha@gmail.com>
This commit is contained in:
parent
3dd7ce1c26
commit
dc387547a3
@ -52,6 +52,14 @@ VERYCLEANUP += .echocheck
|
||||
echo :
|
||||
@$(ECHO) "Using \"$(ECHO_E)\" for \"echo -e\""
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# Generate a usable "seq" substitute
|
||||
#
|
||||
define seq
|
||||
$(shell awk 'BEGIN { for ( i = $(1) ; i <= $(2) ; i++ ) print i }')
|
||||
endef
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# Determine host OS
|
||||
@ -495,7 +503,7 @@ $(EMBEDDED_LIST) :
|
||||
VERYCLEANUP += $(EMBEDDED_LIST)
|
||||
|
||||
EMBEDDED_FILES := $(subst $(COMMA), ,$(EMBEDDED_IMAGE))
|
||||
EMBED_ALL := $(foreach i,$(shell seq 1 $(words $(EMBEDDED_FILES))),\
|
||||
EMBED_ALL := $(foreach i,$(call seq,1,$(words $(EMBEDDED_FILES))),\
|
||||
EMBED ( $(i), \"$(word $(i), $(EMBEDDED_FILES))\",\
|
||||
\"$(notdir $(word $(i),$(EMBEDDED_FILES)))\" ))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user