From f3eda7e85be02036986f44251ffa41b8b798c903 Mon Sep 17 00:00:00 2001 From: knu Date: Sat, 21 Sep 2002 06:58:29 +0000 Subject: Unbreak by using find+xargs instead of globbing that results in command line overflow if the length of WRKDIRPREFIX is very long. --- x11-toolkits/open-motif/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'x11-toolkits/open-motif') diff --git a/x11-toolkits/open-motif/Makefile b/x11-toolkits/open-motif/Makefile index 1a2eb5ed3029..112a5a3dcba1 100644 --- a/x11-toolkits/open-motif/Makefile +++ b/x11-toolkits/open-motif/Makefile @@ -53,12 +53,15 @@ post-patch: @${FIND} ${DEMOS_SRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ 's|^install-data-am: |install-data-am: # |g' # fix sections - @${REINPLACE_CMD} -e 's|user cmd|1|' ${WRKSRC}/doc/man/man1/*.1 - @${REINPLACE_CMD} -e 's|library call|3|' ${WRKSRC}/doc/man/man3/*.3 + @${FIND} ${WRKSRC}/doc/man/man1 -name '*.1' -maxdepth 1 | \ + ${XARGS} ${REINPLACE_CMD} -e 's|user cmd|1|' + @${FIND} ${WRKSRC}/doc/man/man3 -name '*.3' -maxdepth 1 | \ + ${XARGS} ${REINPLACE_CMD} -e 's|library call|3|' # mwmrc is not a kernel interface!! @cd ${WRKSRC}/doc/man && ${CP} -f man4/mwmrc.4 man5/mwmrc.5 - @${REINPLACE_CMD} -e 's|special file|5| ; \ - s|file formats|5|' ${WRKSRC}/doc/man/man5/*.5 + @${FIND} ${WRKSRC}/doc/man/man5 -name '*.5' -maxdepth 1 | \ + ${XARGS} ${REINPLACE_CMD} -e 's|special file|5| ; \ + s|file formats|5|' post-install: .if !defined(WITHOUT_OPENMOTIF_DEMOS) -- cgit