Add ${REINPLACE_CMD}, which will be used to get rid of depencency on perl

in current. Use it like the following:

	${REINPLACE_CMD} -e "foo" -e "bar" ${WRKSRC}/somefile

Approved by:	portmgr
This commit is contained in:
Maxim Sobolev 2002-06-13 18:20:40 +00:00
parent fb3735560d
commit 1c411ca96d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61234

View File

@ -623,6 +623,13 @@ OSVERSION!= /usr/sbin/sysctl -n kern.osreldate
.endif
.endif
# Special macro for doing in-place file editing using regexps
.if ${OSVERSION} <= 500033
REINPLACE_CMD?= ${PERL} -p -i.bak
.else
REINPLACE_CMD?= ${SED} -i.bak
.endif
# Get the object format.
.if !defined(PORTOBJFORMAT)
PORTOBJFORMAT!= test -x /usr/bin/objformat && /usr/bin/objformat || echo aout