summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-03-21 01:51:12 +0000
committerjkh <jkh@FreeBSD.org>1995-03-21 01:51:12 +0000
commit5842b076011f6dbe00f01d6f91c3158778c4d03e (patch)
tree8c6586fba4e91eaa839c2ec3633dc48e319dfddb /share
parentdf0cba31bdf79869467db440716d121ccecbf272 (diff)
downloadFreeBSD-src-5842b076011f6dbe00f01d6f91c3158778c4d03e.zip
FreeBSD-src-5842b076011f6dbe00f01d6f91c3158778c4d03e.tar.gz
Make the describe rule generate more thorough information that's actually
of use to a front-end program. Back out my bogus description of the `index' target! :-)
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.port.mk18
1 files changed, 10 insertions, 8 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index 0f43047..20255cc 100644
--- a/share/mk/bsd.port.mk
+++ b/share/mk/bsd.port.mk
@@ -3,7 +3,7 @@
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
#
-# $Id: bsd.port.mk,v 1.118 1995/03/20 00:41:36 ats Exp $
+# $Id: bsd.port.mk,v 1.119 1995/03/21 01:31:43 jkh Exp $
#
# Please view me with 4 column tabs!
@@ -115,7 +115,6 @@
# use in INDEX files and the like.
# checksum - Use files/md5 to ensure that your distfiles are valid
# makesum - Generate files/md5 (only do this for your own ports!)
-# index - Generate an INDEX file of port short desriptions.
#
# Default sequence for "all" is: fetch extract configure build
@@ -311,15 +310,18 @@ patch:
.if !target(describe)
describe:
-.if defined(NO_PACKAGE)
- @echo "${.CURDIR}/${DISTNAME}: ** Not packageable";
-.else
+ @echo -n "${DISTNAME}@${.CURDIR}/${DISTNAME}@${PREFIX}@"
@if [ -f ${PKGDIR}/COMMENT ]; then \
- echo "${.CURDIR}/${DISTNAME}: `cat ${PKGDIR}/COMMENT`"; \
+ echo -n "`cat ${PKGDIR}/COMMENT`"; \
else \
- echo "${.CURDIR}/${DISTNAME}: ** No Description"; \
+ echo -n "** No Description"; \
fi
-.endif
+ @if [ -f ${PKGDIR}/DESCR ]; then \
+ echo -n "@${PKGDIR}/DESCR"; \
+ else \
+ echo -n "@/dev/null"; \
+ fi
+ @echo ""
.endif
.if !target(reinstall)
OpenPOWER on IntegriCloud