Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45757
$(curdir)/index: FORCE
@echo Generating package index...
@for d in $(PACKAGE_SUBDIRS); do ( \
- [ -d $(PACKAGE_DIR)/$$d ] && \
- cd $(PACKAGE_DIR)/$$d || continue; \
+ mkdir -p $(PACKAGE_DIR)/$$d; \
+ cd $(PACKAGE_DIR)/$$d || continue; \
$(SCRIPT_DIR)/ipkg-make-index.sh . 2>&1 > Packages && \
gzip -9c Packages > Packages.gz; \
); done
fi
which md5sum >/dev/null 2>&1 || alias md5sum=md5
+empty=1
for pkg in `find $pkg_dir -name '*.ipk' | sort`; do
+ empty=
name="${pkg##*/}"
name="${name%%_*}"
[[ "$name" = "kernel" ]] && continue
Description:/"
echo ""
done
+[ -n "$empty" ] && echo