From fe0f46858ba6af8c6ade141faacf9ab094f388cd Mon Sep 17 00:00:00 2001 From: Tim Vanderhoek Date: Fri, 6 Sep 2002 13:45:33 +0000 Subject: USE_REINPLACE rather than a somewhat convoluted perl expression. --- converters/uulib/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'converters/uulib/Makefile') diff --git a/converters/uulib/Makefile b/converters/uulib/Makefile index 69fac9e823a0..2e0f9decb2bf 100644 --- a/converters/uulib/Makefile +++ b/converters/uulib/Makefile @@ -15,6 +15,7 @@ MAINTAINER= hoek@FreeBSD.org GNU_CONFIGURE= yes INSTALLS_SHLIB= yes +USE_REINPLACE= yes MAN3= uulib.3 @@ -39,8 +40,10 @@ do-install: @/usr/bin/ranlib ${PREFIX}/lib/libuu.a ${INSTALL_DATA} ${WRKSRC}/uulib/uudeview.h ${PREFIX}/include ${INSTALL_MAN} ${FILESDIR}/uulib.3 ${PREFIX}/man/man3 - ${PERL} -pi -e '$$a = '\''${PREFIX}/'\''; $$a =~ s/([^\w\/])/\\$$1/g; \ - s/FUNKYTOKENHERE/$$a/' ${PREFIX}/man/man3/uulib.3 + ${REINPLACE_CMD} -e 's,FUNKYTOKENHERE,${PREFIX}/,' \ + ${PREFIX}/man/man3/uulib.3 + @# If we don't remove the .bak file, then man(1) gets confused + @${RM} -f ${PREFIX}/man/man3/uulib.3.bak .if !defined(NOPORTDOCS) @${ECHO_MSG} "===> Installing documentation for ${PKGNAME}" @${MKDIR} ${PREFIX}/share/doc/uulib -- cgit v1.2.3