Remove PORTSDIR from describe:, in portsubdir, and in descr.

(noticed by turan, quick and dirty implementation until I clean the
DIRPRFX mess)
This commit is contained in:
espie 2000-03-27 01:52:17 +00:00
parent 3747ceb7de
commit c8a414183a

View File

@ -1,6 +1,6 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4 sw=4 filetype=make:
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.237 2000/03/26 21:23:20 espie Exp $$
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.238 2000/03/27 01:52:17 espie Exp $$
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $
# $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
#
@ -2121,7 +2121,7 @@ clean-depends:
#
describe:
.if !defined(NO_DESCRIBE)
@echo -n "${PKGNAME}|${.CURDIR}|"; \
@echo -n "${PKGNAME}|${.CURDIR:S,^${PORTSDIR}/,,}|"; \
echo -n "${PREFIX}|"; \
if [ -f ${COMMENT} ]; then \
echo -n "`cat ${COMMENT}`|"; \
@ -2129,7 +2129,7 @@ describe:
echo -n "** No Description|"; \
fi; \
if [ -f ${DESCR} ]; then \
echo -n "${DESCR}|"; \
echo -n "${DESCR:S,^${PORTSDIR}/,,}|"; \
else \
echo -n "/dev/null|"; \
fi; \