blob: f8c80b5bf81d5487bf70a89486876db937c7ce67 [file] [log] [blame]
Dave Barach74574222016-02-01 12:05:52 -05001#!/bin/bash
2
3# includes
4rm -rf dpdk-includes
5mkdir dpdk-includes
6(cd $1/dpdk/include; tar cfh - . | (cd ../../../dpdk-includes; tar xf -))
7
8paths=`cd dpdk-includes; find . -type f -print`
9rm -f $2
10
11for path in $paths
12do
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
19done
20