add support for Package/<pkgname>/description - old format still supported, but deprecated

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@5015 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
Felix Fietkau
2006-10-10 15:45:36 +00:00
parent 77acae652f
commit 1873f0281a
2 changed files with 13 additions and 4 deletions

View File

@@ -169,6 +169,8 @@ define BuildPackage
echo "Default: $(DEFAULT)";
endif
$(call shexport,Package/$(1)/description)
DUMPINFO += \
if [ "$$$$PREREQ_CHECK" = 1 ]; then echo "Prereq-Check: 1"; fi; \
echo "Version: $(VERSION)"; \
@@ -176,7 +178,12 @@ define BuildPackage
echo "Build-Depends: $(PKG_BUILDDEP)"; \
echo "Category: $(CATEGORY)"; \
echo "Title: $(TITLE)"; \
echo "Description: $(DESCRIPTION)" | sed -e 's,\\,\n,g'; \
if isset $(call shvar,Package/$(1)/description); then \
echo -n "Description: "; \
getvar $(call shvar,Package/$(1)/description); \
else \
echo "Description: $(DESCRIPTION)" | sed -e 's,\\,\n,g'; \
fi;
ifneq ($(URL),)
DUMPINFO += \