From 31ff3c7ebbc4e5ca08ba4d646e628589d4a1a21e Mon Sep 17 00:00:00 2001 From: agc Date: Fri, 13 Feb 1998 15:16:43 +0000 Subject: [PATCH] When generating the PLIST, if a manual page name has to have .gz added or removed using sed, don't add the g at the end of the substitution expression - there will only be one substitution per line. --- share/mk/bsd.port.mk | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk index 08b60a628b06..39c9404ff589 100644 --- a/share/mk/bsd.port.mk +++ b/share/mk/bsd.port.mk @@ -1,7 +1,7 @@ #-*- mode: Fundamental; tab-width: 4; -*- # ex:ts=4 # -# $NetBSD: bsd.port.mk,v 1.44 1998/02/09 00:47:23 hubertf Exp $ +# $NetBSD: bsd.port.mk,v 1.45 1998/02/13 15:16:43 agc Exp $ # # bsd.port.mk - 940820 Jordan K. Hubbard. # This file is in the public domain. @@ -1929,8 +1929,8 @@ ${PLIST}: ${PLIST_SRC} .if defined(MANZ) @if [ ! -z "${PLIST_SRC}" ] ; then \ ${CAT} ${PLIST_SRC} | ${SED} \ - -e '/man\/man.*[^g][^z]$$/s/$$/.gz/g' \ - -e '/man\/cat.*[^g][^z]$$/s/$$/.gz/g' \ + -e '/man\/man.*[^g][^z]$$/s/$$/.gz/' \ + -e '/man\/cat.*[^g][^z]$$/s/$$/.gz/' \ -e 's/<\$$ARCH>/'${ARCH}'/g' \ -e 's/\$${MACHINE_ARCH}/'${MACHINE_ARCH}'/g' \ >${PLIST} ; \ @@ -1938,8 +1938,8 @@ ${PLIST}: ${PLIST_SRC} .else # !MANZ @if [ ! -z "${PLIST_SRC}" ] ; then \ ${CAT} ${PLIST_SRC} | ${SED} \ - -e '/man\/man/s/\.gz$$//g' \ - -e '/man\/cat/s/\.gz$$//g' \ + -e '/man\/man/s/\.gz$$//' \ + -e '/man\/cat/s/\.gz$$//' \ -e 's/<\$$ARCH>/'${ARCH}'/g' \ -e 's/\$${MACHINE_ARCH}/'${MACHINE_ARCH}'/g' \ >${PLIST} ; \