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 <rom...@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)

Attachment: signature.asc
Description: PGP signature

Reply via email to