Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # includes |
| 4 | paths=`find $1/*/include -type f -print | grep -v '/dpdk/include/'` |
| 5 | rm -f $2 |
| 6 | |
| 7 | for path in $paths |
| 8 | do |
| 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 |
| 16 | done |
| 17 | |
| 18 | # sample plugin |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 19 | paths=`(cd ..; find src/examples/sample-plugin -type f -print | grep -v autom4te)` |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 20 | |
| 21 | for path in $paths |
| 22 | do |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 23 | relpath=`echo $path | sed -e 's:.*src/examples/::'` |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 24 | dir=`dirname $relpath` |
| 25 | if [ $dir = "sample-plugin" ] ; then |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 26 | echo ../../$path /usr/share/doc/vpp/examples/sample-plugin/ >> $2 |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 27 | else |
| 28 | echo ../../$path \ |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 29 | /usr/share/doc/vpp/examples/$dir >> $2 |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 30 | fi |
| 31 | done |