proper series file support for regular packages

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9059 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2007-09-29 00:25:38 +00:00
parent c1e4663769
commit ccff8348de
1 changed files with 6 additions and 1 deletions

View File

@ -44,7 +44,12 @@ ifneq ($(QUILT),)
else
define Build/Patch/Default
@if [ -d $(PATCH_DIR) -a "$$$$(ls $(PATCH_DIR) | wc -l)" -gt 0 ]; then \
if [ -f $(PATCH_DIR)/series ]; then \
grep -vE '^#' $(PATCH_DIR)/series | xargs -n1 \
$(PATCH) $(PKG_BUILD_DIR) $(PATCH_DIR); \
else \
$(PATCH) $(PKG_BUILD_DIR) $(PATCH_DIR); \
fi; \
fi
endef
endif