1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/mail/postfix-current/scripts/configure
Doug White 4e37042ed9 Change configure script to use find & grep instead of grep -r. The -r
option is only available on 4.X.  This allows postfix to compile properly
on FreeBSD 3.X (and possibly before.)

Approved by:	David W. Chapman Jr. <dwcjr@inethouston.net> (maintainer)
2000-12-02 20:28:44 +00:00

9 lines
175 B
Bash

#!/bin/sh
#
# $FreeBSD$
for f in `find ${WRKSRC} | xargs grep -l '\!\!PREFIX\!\!' ` ; do \
mv $f $f.orig && sed s+!!PREFIX!!+$PREFIX+g < $f.orig > $f && \
rm $f.orig
done