2020-11-06 01:12:00 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#cd qemu
|
|
|
|
#debian/rules b/configure-stamp
|
|
|
|
#cd b/qemu; make qapi
|
|
|
|
|
|
|
|
gcc -I qemu/b/qemu `pkg-config glib-2.0 --cflags` \
|
2021-02-21 00:52:16 +03:00
|
|
|
-I qemu/include -E -o qemu_driver.i src/qemu_driver.c
|
2020-11-06 01:12:00 +03:00
|
|
|
|
|
|
|
rm -rf qemu-copy
|
|
|
|
for i in `grep -Po 'qemu/[^"]+' qemu_driver.i | sort | uniq`; do
|
|
|
|
j=${i##qemu/}
|
|
|
|
p=$(dirname $j)
|
|
|
|
mkdir -p qemu-copy/$p
|
|
|
|
cp $i qemu-copy/$j
|
|
|
|
done
|
|
|
|
|
|
|
|
rm qemu_driver.i
|