Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Oct 2017 20:09:58 +0800
From:      blubee blubeeme <gurenchan@gmail.com>
To:        blubee blubeeme <gurenchan@gmail.com>, FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: Porting github code to FreeBSD [configure]
Message-ID:  <CALM2mEniRYdhAHEjpszGfKEjw96jNMzn_k2VCx6e_01h5E8S-A@mail.gmail.com>
In-Reply-To: <20171015113021.GA8564@blogreen.org>
References:  <CALM2mEmxx0mOLNOZGF3Zd0BDHPLQo4ci=hiP7q6S0owadCXzpA@mail.gmail.com> <CALM2mE=D0=aM=4rETC%2BtS0kA%2B9shZwkQesX7G64aySM11XQLSQ@mail.gmail.com> <CALM2mEnyTBpSOgsHk%2BvUNrO6XYFsR_82bTj7HEkP90TBwYjsRQ@mail.gmail.com> <20171015113021.GA8564@blogreen.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hey

That was cool and solved the issue real fast!

Thanks you

On Sun, Oct 15, 2017 at 7:30 PM, Romain Tarti=C3=A8re <romain@freebsd.org> =
wrote:

> On Sun, Oct 15, 2017 at 07:23:49PM +0800, blubee blubeeme wrote:
> > trigger happy missed sending the error:
> >
> > 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
> >
> > 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=3Drevision&revision=3D451772
>
> --
> Romain Tarti=C3=A8re <romain@FreeBSD.org>  http://people.FreeBSD.org/~rom=
ain/
> 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 appreciat=
ed)
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALM2mEniRYdhAHEjpszGfKEjw96jNMzn_k2VCx6e_01h5E8S-A>