diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-10-10 15:45:36 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-10-10 15:45:36 +0000 |
commit | 1873f0281abe38bac82ae27dbd210f16220b3115 (patch) | |
tree | 984360c7fa4175eeb3df4fd9fd772da56368ef39 /include | |
parent | 77acae652fa5607fc76b07ce3ce558e8a845de30 (diff) | |
download | master-187ad058-1873f0281abe38bac82ae27dbd210f16220b3115.tar.gz master-187ad058-1873f0281abe38bac82ae27dbd210f16220b3115.tar.bz2 master-187ad058-1873f0281abe38bac82ae27dbd210f16220b3115.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/package.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/package.mk b/include/package.mk index 181ea32b6e..7ae95f8fe8 100644 --- a/include/package.mk +++ b/include/package.mk @@ -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 += \ |