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 |
| 19 | paths=`(cd ..; find sample-plugin -type f -print | grep -v autom4te)` |
| 20 | |
| 21 | for path in $paths |
| 22 | do |
| 23 | relpath=`echo $path | sed -e 's:.*/sample-plugin/::'` |
| 24 | dir=`dirname $relpath` |
| 25 | if [ $dir = "sample-plugin" ] ; then |
| 26 | echo ../../$path /usr/share/doc/vpp/examples/sample-plugin >> $2 |
| 27 | else |
| 28 | echo ../../$path \ |
| 29 | /usr/share/doc/vpp/examples/$dir >> $2 |
| 30 | fi |
| 31 | done |