diff options
Diffstat (limited to 'www/tclhttpd/scripts/post-patch')
-rw-r--r-- | www/tclhttpd/scripts/post-patch | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/www/tclhttpd/scripts/post-patch b/www/tclhttpd/scripts/post-patch index 26de6121b1f..0ac49a5f89c 100644 --- a/www/tclhttpd/scripts/post-patch +++ b/www/tclhttpd/scripts/post-patch @@ -1,10 +1,6 @@ if [ ${LOCALBASE} != /usr/local ] ; then - for f in `find ${WRKSRC} -type f | xargs grep -l /usr/local` - do - cp -p $f $f.ul && \ - sed "s%/usr/local%${LOCALBASE}%g" < $f.ul > $f \ - && rm -f $f.ul - done + find ${WRKSRC} -type f | xargs grep -l /usr/local |\ + xargs sed -i "" -e s%/usr/local%${LOCALBASE}%g fi for f in `find ${WRKSRC} -type f | \ xargs grep -l '^exec tclsh.* '` |