mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-18 05:28:36 -07:00
fix scripts/make_device_config.sh
Make it handle multiple include statements in a file:
(1) The printf needs a space so the include files will be separated.
(2) Also $f can contain multiple failes, so redirection will not work
and we have to use cat to process all files.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
62162fff59
commit
f4ece40463
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ process_includes () {
|
||||||
|
|
||||||
f=$src
|
f=$src
|
||||||
while [ -n "$f" ] ; do
|
while [ -n "$f" ] ; do
|
||||||
f=`tr -d '\r' < $f | awk '/^include / {printf "'$src_dir'/%s", $2}'`
|
f=`cat $f | tr -d '\r' | awk '/^include / {printf "'$src_dir'/%s ", $2}'`
|
||||||
[ $? = 0 ] || exit 1
|
[ $? = 0 ] || exit 1
|
||||||
all_includes="$all_includes $f"
|
all_includes="$all_includes $f"
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue