Date: Sun, 15 Oct 2017 13:30:21 +0200 From: Romain =?iso-8859-1?Q?Tarti=E8re?= <romain@FreeBSD.org> To: blubee blubeeme <gurenchan@gmail.com> Cc: FreeBSD Ports <freebsd-ports@freebsd.org> Subject: Re: Porting github code to FreeBSD [configure] Message-ID: <20171015113021.GA8564@blogreen.org> In-Reply-To: <CALM2mEnyTBpSOgsHk%2BvUNrO6XYFsR_82bTj7HEkP90TBwYjsRQ@mail.gmail.com> References: <CALM2mEmxx0mOLNOZGF3Zd0BDHPLQo4ci=hiP7q6S0owadCXzpA@mail.gmail.com> <CALM2mE=D0=aM=4rETC%2BtS0kA%2B9shZwkQesX7G64aySM11XQLSQ@mail.gmail.com> <CALM2mEnyTBpSOgsHk%2BvUNrO6XYFsR_82bTj7HEkP90TBwYjsRQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 15, 2017 at 07:23:49PM +0800, blubee blubeeme wrote: > trigger happy missed sending the error: >=20 > format=3D`echo tmp/tag.hpp | sed 's|.*\.\([^.]*\)$|\1|'`; \ > sed -n \ > -e "/^<!--/s/\.xml ::/.$format --/" \ > -e '/^<!--/,/-->/{ /-->/d; s|^$|//|p; s|^....|//|p; }' lib/tag.xml > > tmp/tag.hpp; \ > xsltproc --stringparam format $format ./lib/tag.xsl lib/tag.xml >> > tmp/tag.hpp > format=3D`echo lib/tag.cpp | sed 's|.*\.\([^.]*\)$|\1|'`; \ > sed -n \ > -e "/^<!--/s/\.xml ::/.$format --/" \ > -e '/^<!--/,/-->/{ /-->/d; s|^$|//|p; s|^....|//|p; }' lib/tag.xml > > lib/tag.cpp; \ > xsltproc --stringparam format $format ./lib/tag.xsl lib/tag.xml >> > lib/tag.cpp > sed -i 's/SEC_N_("%1%")/"%1%"/' tmp/tag.hpp > sed -i 's/SEC_N_("%1%")/"%1%"/' lib/tag.cpp > sed: 1: "tmp/tag.hpp": invalid command code u > sed: 1: "lib/tag.cpp": extra characters at the end of l command >=20 > You can see the FreeBSD version of sed failing on the commands, If I > remember correctly this requires gnu sed to work properly. >=20 > How can I set that in my Makefile? The easiest way could be BINARY_ALIAS introducted a few days ago: https://svnweb.freebsd.org/ports?view=3Drevision&revision=3D451772 --=20 Romain Tarti=E8re <romain@FreeBSD.org> http://people.FreeBSD.org/~romain/ pgp: 8234 9A78 E7C0 B807 0B59 80FF BA4D 1D95 5112 336F (ID: 0x5112336F) (plain text =3Dnon-HTML=3D PGP/GPG encrypted/signed e-mail much appreciated) --qMm9M+Fa2AknHoGS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAEBCAAdFiEEgjSaeOfAuAcLWYD/uk0dlVESM28FAlnjRsoACgkQuk0dlVES M2+VtgwAvQGk9gx1c9SNrfmjYJL49/HLTkI0qAEi/zBGxoXnMDWi+kw0evr4uljR 3+Y2xtYykBwTQ6KGqOYko47QanVHwLr5ed8dsZFLtJbWHP8hmPpgDZ0oWNHwplNI R9ywi6Ri4Qe73ZRtgy7cW52xFEXGq79vLo4SbsXXTPqpqQiT77khWgw9lNGAN2I6 h5IfxkNNQWA0sS2baGtJC2HDclXzEWRO/M7FWgaAVrCUcpJ8zQMSKEdbnYhZX8NV GDSV2HQjMW+974JrJ2XD+CeWBCRE83u71Y2Woai0/4tO+IWPGZgYNnBQj2izDN4L MHgARONqvOPA9sTtwuDoPKmHUX816F0r7xdwwqHv6G84Ek3y3N2JWHY58aE6meGk d5WwwDR4kiUXb91FqtAMSoqOJIk42tjPLO7rY6jXkzvi8Zf5hKeEydH2n3TX9twP sYmtop1Xfd2ulBYf3V3QVfxQsHhG9Q1rJa27Vgw75EEQORAklYL/q4uPUUyuO8RF wtjsYPrY =cXqK -----END PGP SIGNATURE----- --qMm9M+Fa2AknHoGS--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171015113021.GA8564>