GNU-ism in sed use in build scripts

Chris Rees utisoft at gmail.com
Fri Apr 15 18:17:22 UTC 2011


Hi,

Is it vital that 'sed --' is used in scripts/gen-build-files.sh?

It uses the variable $srcdir, which is set in the Makefile to an
absolute path; although of course it would normally be sensible to use
-- when using a variable.

Unfortunately this causes non-GNU sed to break on scripts/gen-build-files.sh.

I've got around it so far by using GNU sed, but it'd be great to
remove that dependency from my point of view.

Would the patch at [1] be acceptable?

Chris

[1] http://www.bayofrum.net/~crees/patches/busybox-non-gnu-sed.diff


More information about the busybox mailing list