From e40046b15dfb9ad5c4dcaa8137ef304b829ea59b Mon Sep 17 00:00:00 2001 From: Will Andrews Date: Sun, 7 Jan 2001 17:49:52 +0000 Subject: Clean up inefficient perl invocations; use multiple REs in the same call. --- audio/holyshout/Makefile | 6 ++---- audio/snowstar/Makefile | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'audio') diff --git a/audio/holyshout/Makefile b/audio/holyshout/Makefile index 4c98541e0ddf..bffcb72fbae0 100644 --- a/audio/holyshout/Makefile +++ b/audio/holyshout/Makefile @@ -15,9 +15,7 @@ MAINTAINER= hollywar@mail.holywar.net USE_GMAKE= yes post-patch: - (cd ${WRKSRC} && find . -name Makefile | xargs ${PERL} -pi -e \ - "s@-O20@${CFLAGS}@g") - (cd ${WRKSRC} && find . -name Makefile | xargs ${PERL} -pi -e \ - "s@-O2@${CFLAGS}@g") + (find ${WRKSRC} -name Makefile | xargs ${PERL} -pi -e \ + "s@-O20@${CFLAGS}@g ; s@-O2@${CFLAGS}@g") .include diff --git a/audio/snowstar/Makefile b/audio/snowstar/Makefile index 864dafdcd425..a4d998c6ea3a 100644 --- a/audio/snowstar/Makefile +++ b/audio/snowstar/Makefile @@ -21,11 +21,9 @@ NO_WRKSUBDIR= true DOC_FILES= CHANGES TODO README_Snowstar LICENSE # somehow snowstar.tcl managed to get loaded with ^M's. -post-extract: - @${PERL} -pi -e "s|\r\n|\n|g" ${WRKSRC}/snowstar.tcl - post-patch: - @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/snowstar.tcl + @${PERL} -pi -e "s|\r\n|\n|g ; \ + s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/snowstar.tcl do-install: ${INSTALL_SCRIPT} ${WRKSRC}/snowstar.tcl ${PREFIX}/bin/snowstar -- cgit v1.2.3