Reinstate a Cygwin workround that was backed out by the previous changes.

Not all platforms support (or require) the -r argument to sed.
This commit is contained in:
Mike Smith 2011-09-11 22:20:54 -07:00
parent 2c27be980d
commit ae77029c98
2 changed files with 8 additions and 1 deletions

2
config.mk Normal file
View File

@ -0,0 +1,2 @@
BOARD=mega
PORT=/dev/null

View File

@ -259,7 +259,12 @@ SKETCHCPP_SRC := $(SKETCHPDE) $(sort $(filter-out $(SKETCHPDE),$(SKETCHPDESRCS)
# make.
#
SEXPR = 's/^[[:space:]]*\#include[[:space:]][<\"]([^>\"./]+).*$$/\1/p'
LIBTOKENS := $(sort $(shell cat $(SKETCHPDESRCS) $(SKETCHSRCS) | sed -nre $(SEXPR)))
ifneq ($(findstring CYGWIN, $(SYSTYPE)),)
# Workaround a cygwin issue
LIBTOKENS := $(sort $(shell cat $(SKETCHPDESRCS) $(SKETCHSRCS) | sed -nre $(SEXPR)))
else
LIBTOKENS := $(sort $(shell cat $(SKETCHPDESRCS) $(SKETCHSRCS) | sed -nEe $(SEXPR)))
endif
#
# Find sketchbook libraries referenced by the sketch.