Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
Dave Barach | 8d0f2f0 | 2018-03-12 09:31:36 -0400 | [diff] [blame] | 3 | # Copyright (c) 2015 Cisco and/or its affiliates. |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at: |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 16 | # includes |
| 17 | paths=`find $1/*/include -type f -print | grep -v '/dpdk/include/'` |
| 18 | rm -f $2 |
| 19 | |
| 20 | for path in $paths |
| 21 | do |
| 22 | relpath=`echo $path | sed -e 's:.*/include/::'` |
| 23 | dir=`dirname $relpath` |
| 24 | if [ $dir = "." ] ; then |
| 25 | echo ../$path /usr/include >> $2 |
| 26 | else |
| 27 | echo ../$path /usr/include/$dir >> $2 |
| 28 | fi |
| 29 | done |
| 30 | |
Dave Barach | 4d1a866 | 2018-09-10 12:31:15 -0400 | [diff] [blame^] | 31 | # Perf monitor .json files |
| 32 | for i in $(find ${1}/vpp/share/vpp/plugins/perfmon -name *.json -type f -print); do |
| 33 | echo ../${i} /usr/share/vpp/plugins/perfmon >> ${2} |
| 34 | done |
| 35 | |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 36 | # sample plugin |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 37 | 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] | 38 | |
| 39 | for path in $paths |
| 40 | do |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 41 | relpath=`echo $path | sed -e 's:.*src/examples/::'` |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 42 | dir=`dirname $relpath` |
| 43 | if [ $dir = "sample-plugin" ] ; then |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 44 | echo ../../$path /usr/share/doc/vpp/examples/sample-plugin/ >> $2 |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 45 | else |
| 46 | echo ../../$path \ |
Damjan Marion | cb034b9 | 2016-12-28 18:38:59 +0100 | [diff] [blame] | 47 | /usr/share/doc/vpp/examples/$dir >> $2 |
Ed Warnicke | cb9cada | 2015-12-08 15:45:58 -0700 | [diff] [blame] | 48 | fi |
| 49 | done |