feat(routing): Support session based routing
[ric-plt/lib/rmr.git] / test / app_test / rebuild.ksh
1 #!/usr/bin/env ksh
2 # :vi ts=4 sw=4 noet :
3 #==================================================================================
4 #    Copyright (c) 2019 Nokia
5 #    Copyright (c) 2018-2019 AT&T Intellectual Property.
6 #
7 #   Licensed under the Apache License, Version 2.0 (the "License");
8 #   you may not use this file except in compliance with the License.
9 #   You may obtain a copy of the License at
10 #
11 #       http://www.apache.org/licenses/LICENSE-2.0
12 #
13 #   Unless required by applicable law or agreed to in writing, software
14 #   distributed under the License is distributed on an "AS IS" BASIS,
15 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 #   See the License for the specific language governing permissions and
17 #   limitations under the License.
18 #==================================================================================
19 #
20
21 # ---------------------------------------------------------------------------------
22 #       Mnemonic:       rebuild.ksh
23 #       Abstract:       This is a simple script that will cause RMr to be rebuilt. It 
24 #                               may be invoked by any of the run_* scripts in this directory.
25 #
26 #       Date:           24 April 2019
27 #       Author:         E. Scott Daniels
28 # ---------------------------------------------------------------------------------
29
30
31 build_path=../../.build
32
33 (
34         set -e
35         mkdir -p $build_path
36         cd ${build_path%/*}                             # cd barfs on ../../.build, so we do this
37         cd ${build_path##*/}
38         cmake ..
39         make package
40 )
41 if (( $? != 0 ))
42 then
43         echo "build failed"
44         exit 1
45 fi
46