Porting github code to FreeBSD [configure]

blubee blubeeme gurenchan at gmail.com
Sun Oct 15 12:09:59 UTC 2017


Hey

That was cool and solved the issue real fast!

Thanks you

On Sun, Oct 15, 2017 at 7:30 PM, Romain Tartière <romain at freebsd.org> wrote:

> On Sun, Oct 15, 2017 at 07:23:49PM +0800, blubee blubeeme wrote:
> > trigger happy missed sending the error:
> >
> > format=`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=`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
> >
> > You can see the FreeBSD version of sed failing on the commands, If I
> > remember correctly this requires gnu sed to work properly.
> >
> > 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=revision&revision=451772
>
> --
> Romain Tartière <romain at FreeBSD.org>  http://people.FreeBSD.org/~romain/
> pgp: 8234 9A78 E7C0 B807 0B59  80FF BA4D 1D95 5112 336F (ID: 0x5112336F)
> (plain text =non-HTML= PGP/GPG encrypted/signed e-mail much appreciated)
>


More information about the freebsd-ports mailing list