3 #*******************************************************************************
4 # Copyright (c) 2018 Intel Corp and/or its affiliates.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 #*******************************************************************************
20 ROOT_DIR=`dirname $(readlink -f $0)`
24 DIRS="infra vbrgemu vbng vgmux vgw"
28 # prepare temporary csar build subdirectory
30 mkdir $ROOT_DIR/$dir/tmp
31 cp MainServiceTemplate.mf MainServiceTemplate.yaml tmp/
32 cp -r $ROOT_DIR/Artifacts tmp/
33 cp -r $ROOT_DIR/Definitions tmp/
34 cp -r $ROOT_DIR/TOSCA-Metadata tmp/
35 cp MainServiceTemplate.yaml tmp/Definitions
38 # create the csar file
39 zip -r $ROOT_DIR/$dir/$dir.csar Artifacts/ TOSCA-Metadata/ Definitions/ MainServiceTemplate.mf MainServiceTemplate.yaml
41 mv $ROOT_DIR/$dir/$dir.csar $DEST/
43 # clean up temporary csar build subdirectory
45 rm -r $ROOT_DIR/$dir/tmp