]>
git.proxmox.com Git - mirror_qemu.git/blob - scripts/make_device_config.sh
2 # Writes a target device config file to stdout, from a default and from
3 # include directives therein. Also emits Makefile dependencies.
5 # Usage: make_device_config.sh SRC DEPFILE-NAME DEPFILE-TARGET > DEST
10 src_dir
=`dirname $src`
14 cat $1 |
grep '^include' | \
15 while read include
file ; do
16 all_includes
="$all_includes $src_dir/$file"
17 process_includes
$src_dir/$file
22 while [ -n "$f" ] ; do
23 f
=`cat $f | tr -d '\r' | awk '/^include / {printf "'$src_dir'/%s ", $2}'`
25 all_includes
="$all_includes $f"
29 cat $src $all_includes |
grep -v '^include'
30 echo "$target: $all_includes" > $dep