X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=package.sh;fp=package.sh;h=0000000000000000000000000000000000000000;hb=2df368cace616e67a6fa5968e23e65a3d5aa0d67;hp=e525c94bd2c0a5a1a2fa4c65c01d538081e2d541;hpb=2e2c88665843b4bd805dbd1a2c71e5959fa9d5bb;p=ric-plt%2Fsdl.git diff --git a/package.sh b/package.sh deleted file mode 100755 index e525c94..0000000 --- a/package.sh +++ /dev/null @@ -1,87 +0,0 @@ -#!/bin/bash -# -# Copyright (c) 2018-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. - -# -# This source code is part of the near-RT RIC (RAN Intelligent Controller) -# platform project (RICP). -# - -set -e - -if [ $# -eq 0 ] -then - echo "Generate a binary package" - echo "Usage: $0 [--target-dir ] [--skip-config] target..." - echo "Where possible targets are debian and rpm" - exit 1 -fi - -SKIP_CONF=0 -BUILD_RPM=0 -BUILD_DEB=0 -SKIP_TEST=0 -TARGET_DIR=/tmp - -for i in "$@" -do - case "$i" in - --target-dir) - shift - TARGET_DIR=$i - ;; - --skip-config) - SKIP_CONF=1 - ;; - --skip-test) - SKIP_TEST=1 - ;; - rpm) - BUILD_RPM=1 - shift - ;; - debian) - BUILD_DEB=1 - ;; - *) - echo "Unknown argument $1" - exit 1 - ;; - esac -done - -if [ $SKIP_CONF -eq 0 ] -then - ./autogen.sh && ./configure -fi - -if [ $BUILD_RPM -ne 0 ] -then - if [ $SKIP_TEST ] - then - TESTOPT=--nocheck - fi - rpmbuild --nodeps $TESTOPT -bb rpm/sdl.spec --define="_sourcedir $PWD" --define="_builddir $PWD" --define="_rpmdir .." - cp ../x86_64/*.rpm "$TARGET_DIR" -fi - -if [ $BUILD_DEB -ne 0 ] -then - if [ $SKIP_TEST -eq 1 ] - then - export DEB_BUILD_OPTIONS="nocheck noddebs" - fi - debuild -b -us -uc -fi