diff options
author | Will Andrews <will@FreeBSD.org> | 2001-01-07 17:49:52 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2001-01-07 17:49:52 +0000 |
commit | e40046b15dfb9ad5c4dcaa8137ef304b829ea59b (patch) | |
tree | 608ae9c87b150f1e38d0af957c8f5103a8dacaab /irc | |
parent | Fix typo. (diff) |
Clean up inefficient perl invocations; use multiple REs in the same call.
Notes
Notes:
svn path=/head/; revision=36897
Diffstat (limited to 'irc')
-rw-r--r-- | irc/kvirc-devel/Makefile | 7 | ||||
-rw-r--r-- | irc/kvirc/Makefile | 7 | ||||
-rw-r--r-- | irc/roxirc/Makefile | 4 | ||||
-rw-r--r-- | irc/tirc/Makefile | 3 |
4 files changed, 9 insertions, 12 deletions
diff --git a/irc/kvirc-devel/Makefile b/irc/kvirc-devel/Makefile index 6f6570a9c21e..ea3b529a59ab 100644 --- a/irc/kvirc-devel/Makefile +++ b/irc/kvirc-devel/Makefile @@ -38,9 +38,8 @@ CONFIGURE_ARGS= --x-includes=$(X11BASE)/include \ CONFIGURE_ENV+= SS_X_EXTRA_LIBS=-lxpg4 pre-build: - for i in `find ${WRKSRC} -name Makefile` ; do \ - ${PERL} -pi -e "s@lqt @lqt2 @g" $$i ; \ - ${PERL} -pi -e "s@lpthread@pthread@g" $$i ; \ - done + @find ${WRKSRC} -name Makefile | xargs ${PERL} -pi -e \ + "s@lqt @lqt2 @g ; \ + s@lpthread@pthread@g" .include <bsd.port.mk> diff --git a/irc/kvirc/Makefile b/irc/kvirc/Makefile index 6f6570a9c21e..ea3b529a59ab 100644 --- a/irc/kvirc/Makefile +++ b/irc/kvirc/Makefile @@ -38,9 +38,8 @@ CONFIGURE_ARGS= --x-includes=$(X11BASE)/include \ CONFIGURE_ENV+= SS_X_EXTRA_LIBS=-lxpg4 pre-build: - for i in `find ${WRKSRC} -name Makefile` ; do \ - ${PERL} -pi -e "s@lqt @lqt2 @g" $$i ; \ - ${PERL} -pi -e "s@lpthread@pthread@g" $$i ; \ - done + @find ${WRKSRC} -name Makefile | xargs ${PERL} -pi -e \ + "s@lqt @lqt2 @g ; \ + s@lpthread@pthread@g" .include <bsd.port.mk> diff --git a/irc/roxirc/Makefile b/irc/roxirc/Makefile index eeafaa24865a..c5455a3c7fb0 100644 --- a/irc/roxirc/Makefile +++ b/irc/roxirc/Makefile @@ -25,7 +25,7 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/help ${PREFIX}/share/doc/roxirc/help post-patch: - @${PERL} -pi -e 's,/usr/local,${PREFIX},g' ${WRKSRC}/roxirc - @${PERL} -pi -e 's,wish8.0,wish8.2,g' ${WRKSRC}/roxirc + @${PERL} -pi -e 's,/usr/local,${PREFIX},g ; \ + s,wish8.0,wish8.2,g' ${WRKSRC}/roxirc .include <bsd.port.mk> diff --git a/irc/tirc/Makefile b/irc/tirc/Makefile index 3bfe562c9541..058ddf9b603a 100644 --- a/irc/tirc/Makefile +++ b/irc/tirc/Makefile @@ -18,8 +18,7 @@ MAKE_FLAGS= CONF_ARGS="--prefix=${PREFIX}" MAN1= tirc.1 post-patch: - @${PERL} -pi -e 's:__PREFIX__:${PREFIX}:g' ${WRKSRC}/*.c - @${PERL} -pi -e 's:__PREFIX__:${PREFIX}:g' ${WRKSRC}/*.1 + @${PERL} -pi -e 's:__PREFIX__:${PREFIX}:g' ${WRKSRC}/*.c ${WRKSRC}/*.1 post-install: strip ${PREFIX}/bin/tirc |