patch problem with new port

Paul Schmehl pauls at utdallas.edu
Tue Jul 19 20:07:44 GMT 2005


--On Tuesday, July 19, 2005 13:35:07 -0500 Scot Hetzel <swhetzel at gmail.com> 
wrote:
>
> If you are repeatedly changing only one line in several files, you
> could use the ${REPLACE_CMD} variable to replace the line.
>
> USE_REINPLACE=	yes
> WISH_CMD?=    wish8.3
>
> post-patch:
> .for file in file1 file2
>     @${REINPLACE_CMD} -e 's:exec wish:exec ${WISH_CMD}:g' ${WRKDIR}/$file
> .endfor
>
> You can use this trick even if you are patching one of the files, as
> the post-patch occurs after your patch is applied.
>
Grrrr...The problem was the whitespace.  I *thought* I had used a tab, but 
I deleted it and then reentered a tab, and now it's working.

Just call me Mr. Syntax.  That's my single biggest problem with this 
stuff....

Thanks for everyone's help.

Paul Schmehl (pauls at utdallas.edu)
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/


More information about the freebsd-ports mailing list