check for empty patch directories

SVN-Revision: 5086
v19.07.3_mercusys_ac12_duma
Felix Fietkau 18 years ago
parent 688443a803
commit 6779edb40e

@ -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

Loading…
Cancel
Save