-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On Tue, 14 Aug 2018 17:33:38 +0200 Mathieu Arnold <m...@freebsd.org> wrote:
> On Tue, Aug 14, 2018 at 10:41:43PM +0800, blubee blubeeme wrote: > > This one is fairly straight forward, you can simply replace that > > string with a regex command; > > This is an example of running a replace command for strings after > > the patch phase of the build; > > > > post-patch: > > @${REINPLACE_CMD} -e 's|for Linux|for FreeBSD|g' > > ${WRKSRC}/README > > Patching files in post-patch using sed SHOULD only be used to replace > dynamic content, never static content. Indeed. One of the most annoying things is that it breaks 'make makepatch'. -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEVgdI2KeVldPAhUYaKBdf2az8e6gFAltzD60ACgkQKBdf2az8 e6h2QQgApKsemAO02PhYYAhAYhSTEZeBB99wNtrfhlFv341kyzlfgRmtj+Boum4P a6dxBKUllppOcw4515fa/I6Q36LE4OCTkH3c2gUSATZArummj1cdBRCrqfgxYMww dc6OntuSnXZ1r6zaBNKVi0wmnFh2Q1oOagx5IrtJ/ysDXgt1oNhNrtWfYjOQyGuL AajyTzb+NAa0Y+FVIptLYUmcezrHCUuZQUqaLAKlg72C/OvnQYxyP+kzHkztgiH/ zVkgW+jZeLP+vmSjqmtFIHZC6VzC0Sg53dZJlLfIbG4qmyyOgET1mDP9c5WfR3vq 0E6sQxsLrTs8RzLnx61TYD1fP0eSPQ== =yKsq -----END PGP SIGNATURE----- _______________________________________________ freebsd-ports@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"