blob: 77028af0051c09faf2feafaf3fad40221dd746f9 [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
19paths=`(cd ..; find sample-plugin -type f -print | grep -v autom4te)`
20
21for path in $paths
22do
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
31done