This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
vitalif
/
vitastor
Watch
6
Star
4
Fork
1
Code
Issues
0
Pull Requests
0
Releases
2
Wiki
Activity
Browse Source
Add scripts to copy fio and qemu includes to the source package
tags/v0.5.1
Vitaliy Filippov
2 months ago
parent
64d471cf53
commit
0c43ff9daf
2 changed files
with
31 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+13
-0
copy-fio-includes.sh
+18
-0
copy-qemu-includes.sh
+ 13
- 0
copy-fio-includes.sh
View File
@@ -0,0 +1,13 @@
#!/bin/bash
gcc -E -o fio_headers.i fio_headers.h
rm -rf fio-copy
for i in `grep -Po 'fio/[^"]+' fio_headers.i | sort | uniq`; do
j=${i##fio/}
p=$(dirname $j)
mkdir -p fio-copy/$p
cp $i fio-copy/$j
done
rm fio_headers.i
+ 18
- 0
copy-qemu-includes.sh
View File
@@ -0,0 +1,18 @@
#!/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` \
-I qemu/include -E -o qemu_driver.i qemu_driver.c
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
Write
Preview
Loading…
Cancel
Save