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 /audio | |
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 'audio')
-rw-r--r-- | audio/holyshout/Makefile | 6 | ||||
-rw-r--r-- | audio/snowstar/Makefile | 6 |
2 files changed, 4 insertions, 8 deletions
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 <bsd.port.mk> 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 |