win32: Fix CRLF problem in make_device_config.sh
authorStefan Weil <weil@mail.berlios.de>
Sat, 18 Dec 2010 16:34:26 +0000 (17:34 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 18 Dec 2010 18:58:25 +0000 (18:58 +0000)
commitcaddb324f62cd92c1542e4aea69d84626c56fc50
treec610138b988fedcd780feb56310498fe3af37cae
parent02a37ac2ef22d07284401dbb69522adf1b16bb09
win32: Fix CRLF problem in make_device_config.sh

QEMU source code with CRLF line endings
which is quite common on windows hosts
fails with current make_device_config.sh.

The awk script gets the name of the included
file with \r, so instead of pci.mak it will
search for pci.mak\r which of course does
not work.

Fix this by removing any \r.

v2:
    Avoid using sub() and \r with awk because they are unsupported
    on some platforms. Use tr to remove \r. This new solution
    improves portability and was suggested by Paolo Bonzini.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Acked-by: Andreas Färber <andreas.faerber@web.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
make_device_config.sh