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! :-)
This commit is contained in:
parent
ed6248d90a
commit
86f8fd330d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=1173
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user