X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=sim%2Fe2-interface.git;a=blobdiff_plain;f=e2sim%2Fprevious%2Fbuild_e2sim;fp=e2sim%2Fprevious%2Fbuild_e2sim;h=0000000000000000000000000000000000000000;hp=80a53c6c1825fac21401bd36a85a6bfbbcd17ab4;hb=f86662b5b6481f27e18313a36355871f3a947193;hpb=a9f02a2b5886990fd81e64f7c218c5d4844f18a3 diff --git a/e2sim/previous/build_e2sim b/e2sim/previous/build_e2sim deleted file mode 100755 index 80a53c6..0000000 --- a/e2sim/previous/build_e2sim +++ /dev/null @@ -1,86 +0,0 @@ -#!/bin/bash -#/***************************************************************************** -# * -# Copyright 2019 AT&T Intellectual Property * -# Copyright 2019 Nokia * -# * -# Licensed under the Apache License, Version 2.0 (the "License"); * -# you may not use this file except in compliance with the License. * -# You may obtain a copy of the License at * -# * -# http://www.apache.org/licenses/LICENSE-2.0 * -# * -# Unless required by applicable law or agreed to in writing, software * -# distributed under the License is distributed on an "AS IS" BASIS, * -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * -# See the License for the specific language governing permissions and * -# limitations under the License. * -# * -#******************************************************************************/ - -set -e - -E2SIM_VERSION='1.4.0' -export E2SIM_DIR=$PWD -source $E2SIM_DIR/tools/build_helper.bash -DOCKER_IMAGE='e2sim' - -print_help() { - echo " - This program installs E2 Simulator - You should have ubuntu 14.xx, updated, and the Linux kernel >= 3.14 - The program is run by default with no option - - USAGE: - ./build_e2sim [OPTIONS] - - OPTIONS: - --clean - Erase all files to make a rebuild from start - --docker - Build docker image - -h - Print this help - " -} - -function main(){ - case "$1" in - --clean) - echo_info "Will clean all previously producted files under build/" - rm -rf $E2SIM_DIR/build - echo_success "Clean Done" - exit - ;; - - --docker) - echo "Will build docker image ${DOCKER_IMAGE}:${E2SIM_VERSION}" - sudo docker build -f docker/Dockerfile -t $DOCKER_IMAGE:$E2SIM_VERSION . - exit - ;; - - "") - ;; - - -h) - print_help - exit 1;; - - *) - echo_error "Unknown option $1" - exit - esac - - BUILD_DIR=$E2SIM_DIR/build - mkdir -p $BUILD_DIR - - echo_info "Will build e2sim" - cd $BUILD_DIR - rm -rf CMakeCache.txt - cmake .. - make -j`nproc` - - echo_success "e2sim compiled" -} - -main "$@"