Dave Barach | 7457422 | 2016-02-01 12:05:52 -0500 | [diff] [blame^] | 1 | #!/bin/bash |
2 | |||||
3 | # includes | ||||
4 | rm -rf dpdk-includes | ||||
5 | mkdir dpdk-includes | ||||
6 | (cd $1/dpdk/include; tar cfh - . | (cd ../../../dpdk-includes; tar xf -)) | ||||
7 | |||||
8 | paths=`cd dpdk-includes; find . -type f -print` | ||||
9 | rm -f $2 | ||||
10 | |||||
11 | for path in $paths | ||||
12 | do | ||||
13 | dir=`dirname $path` | ||||
14 | if [ $dir = "." ] ; then | ||||
15 | echo ../dpdk-includes/$path /usr/include/vpp-dpdk >> $2 | ||||
16 | else | ||||
17 | echo ../dpdk-includes/$path /usr/include/vpp-dpdk/$dir >> $2 | ||||
18 | fi | ||||
19 | done | ||||
20 |