2 ##############################################################################
4 # Copyright (c) 2020 AT&T Intellectual Property.
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.
18 ##############################################################################
20 # Installs NNG then runs a build script in the repository
21 # Assumes ubuntu - uses apt-get
23 echo "--> prescan-e2mgr-ubuntu.sh"
27 sudo apt-get update && sudo apt-get install -y cmake ninja-build
29 # NNG repo is not frequently tagged so it's pinned to a commit hash.
30 # This commit repairs bug https://github.com/nanomsg/nng/issues/970
31 git clone https://github.com/nanomsg/nng.git
33 && git checkout e618abf8f3db2a94269a79c8901a51148d48fcc2 \
36 && cmake -DBUILD_SHARED_LIBS=1 -G Ninja .. \
38 && sudo ninja install)
40 # build script must start in this subdir
42 bash ./build-e2mgr-ubuntu.sh
44 echo "--> prescan-e2mgr-ubuntu.sh ends"