proper series file support for regular packages
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 29 Sep 2007 00:25:38 +0000 (00:25 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 29 Sep 2007 00:25:38 +0000 (00:25 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9059 3c298f89-4303-0410-b956-a3cf2f4a3e73

include/quilt.mk

index 4dce2a6..c156d30 100644 (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 \
-               $(PATCH) $(PKG_BUILD_DIR) $(PATCH_DIR); \
+               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
This page took 0.024143 seconds and 4 git commands to generate.