blob: 394964ca3957b047e8b89d6c38ddd285f2543470 [file] [log] [blame]
Damjan Marionad476c72016-07-13 13:42:33 +02001#!/bin/bash
2
Dave Barach8d0f2f02018-03-12 09:31:36 -04003# 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
Damjan Marionad476c72016-07-13 13:42:33 +020016rm -f $2
17
Damjan Marioncb034b92016-12-28 18:38:59 +010018for i in ${1}/vpp/lib64/vpp_plugins/*.so; do
Damjan Marionad476c72016-07-13 13:42:33 +020019 echo ../${i} /usr/lib/vpp_plugins >> ${2}
20done
21
Damjan Marioncb034b92016-12-28 18:38:59 +010022for i in ${1}/vpp/lib64/vpp_api_test_plugins/*.so; do
Damjan Marionad476c72016-07-13 13:42:33 +020023 echo ../${i} /usr/lib/vpp_api_test_plugins >> ${2}
24done
Ole Troanf14e3bf2016-12-01 21:49:03 +010025
Damjan Marion7cd468a2016-12-19 23:05:39 +010026for i in $(find ${1}/plugins ${1}/vpp/share/vpp/api/plugins/ -name *.api.json -type f -print); do
Ole Troanf14e3bf2016-12-01 21:49:03 +010027 echo ../${i} /usr/share/vpp/api/ >> ${2}
28done