check for empty patch directories

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5086 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2006-10-14 15:09:03 +00:00
parent b1bb10bdcf
commit f151b6ee70
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ endef
ifneq ($(strip $(PKG_UNPACK)),)
define Build/Prepare/Default
$(PKG_UNPACK)
@if [ -d ./patches ]; then \
@if [ -d ./patches -a "$$$$(ls ./patches | wc -l)" -gt 0 ]; then \
$(PATCH) $(PKG_BUILD_DIR) ./patches; \
fi
endef