]> xenbits.xensource.com Git - people/pauldu/xen.git/commit
tools/libacpi: fix sed usage
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 31 Oct 2016 10:05:20 +0000 (11:05 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 31 Oct 2016 10:33:11 +0000 (10:33 +0000)
commit26c4f0b8a4cf233f600f4163fc3aeeb7f70b3021
tree0344b18e1979df9ec0d4df6d908c940923af7ab4
parent7791790c7ab97c85306dce749c6c8eb56d1dc0da
tools/libacpi: fix sed usage

Current usage of sed in the libacpi Makefile make uses of non-POSIX options,
that are not available on all the OSes supported by the Xen tools.

The '-i' option has slightly different semantics between GNU and BSD sed
implementations, while on the GNU version the suffix is optional, on the BSD
one it is not. Also BSD sed seems to have problems parsing the script
itself, reporting "extra characters at the end of d command".

Fix those issues by using a temporary intermediate file, and replace the
script with a simpler version that achieves the same purpose (removing the
initial license header comment).

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libacpi/Makefile