srsLTE/debian/packager.sh

33 lines
800 B
Bash
Raw Normal View History

#!/bin/bash
#
2021-03-19 03:45:56 -07:00
# Copyright 2013-2021 Software Radio Systems Limited
#
2020-12-01 05:54:40 -08:00
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the distribution.
#
RELEASE=19.06
DISTRO=disco
COMMIT=eda7ca69a09933526e9318bcf553af0dc0b81598
REL_FLAG=releases
2021-03-19 03:45:56 -07:00
echo 'Packaging srsRAN release' $RELEASE 'for Ubuntu' $DISTRO
# Make build dir for the package
2021-03-19 03:45:56 -07:00
BUILD_DIR=~/build-area/srsran_$RELEASE/$REL_FLAG/$DISTRO
mkdir -p $BUILD_DIR
# Make tarball of the package source
2021-03-19 03:45:56 -07:00
pushd ~/srsRAN
git archive $COMMIT -o $BUILD_DIR/srsran_$DISTRO.tar.gz
popd
# Copy original tarball
2021-03-19 03:45:56 -07:00
cp ~/build-area/srsran_$RELEASE/$REL_FLAG/srsran_$RELEASE.orig.tar.gz $BUILD_DIR
2021-03-19 03:45:56 -07:00
mkdir $BUILD_DIR/srsRAN
pushd $BUILD_DIR/srsRAN
tar -vxzf ../srsran_$DISTRO.tar.gz
popd