blob: d4f7b63fb868142267d908195974dfc462cb709c [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001#!/bin/bash
2
3# includes
4paths=`find $1/*/include -type f -print | grep -v '/dpdk/include/'`
5rm -f $2
6
7for path in $paths
8do
9 relpath=`echo $path | sed -e 's:.*/include/::'`
10 dir=`dirname $relpath`
11 if [ $dir = "." ] ; then
12 echo ../$path /usr/include >> $2
13 else
14 echo ../$path /usr/include/$dir >> $2
15 fi
16done
17
18# sample plugin
Damjan Marioncb034b92016-12-28 18:38:59 +010019paths=`(cd ..; find src/examples/sample-plugin -type f -print | grep -v autom4te)`
Ed Warnickecb9cada2015-12-08 15:45:58 -070020
21for path in $paths
22do
Damjan Marioncb034b92016-12-28 18:38:59 +010023 relpath=`echo $path | sed -e 's:.*src/examples/::'`
Ed Warnickecb9cada2015-12-08 15:45:58 -070024 dir=`dirname $relpath`
25 if [ $dir = "sample-plugin" ] ; then
Damjan Marioncb034b92016-12-28 18:38:59 +010026 echo ../../$path /usr/share/doc/vpp/examples/sample-plugin/ >> $2
Ed Warnickecb9cada2015-12-08 15:45:58 -070027 else
28 echo ../../$path \
Damjan Marioncb034b92016-12-28 18:38:59 +010029 /usr/share/doc/vpp/examples/$dir >> $2
Ed Warnickecb9cada2015-12-08 15:45:58 -070030 fi
31done