From 6b468b25f6431f8336f8384f5572082a83c7d1ad Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Mon, 2 Sep 2019 10:26:13 +0000 Subject: [PATCH] Added script to help with the packaging --- debian/packager.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100755 debian/packager.sh diff --git a/debian/packager.sh b/debian/packager.sh new file mode 100755 index 000000000..23ae9cdde --- /dev/null +++ b/debian/packager.sh @@ -0,0 +1,44 @@ +#!/bin/bash +################################################################### +# +# This file is part of srsLTE. +# +# srsLTE is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# srsLTE is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# A copy of the GNU Affero General Public License can be found in +# the LICENSE file in the top-level directory of this distribution +# and at http://www.gnu.org/licenses/. +# +################################################################### + +RELEASE=19.06 +DISTRO=disco +COMMIT=eda7ca69a09933526e9318bcf553af0dc0b81598 +REL_FLAG=releases + +echo 'Packaging srsLTE release' $RELEASE 'for Ubuntu' $DISTRO + +# Make build dir for the package +BUILD_DIR=~/build-area/srslte_$RELEASE/$REL_FLAG/$DISTRO +mkdir -p $BUILD_DIR + +# Make tarball of the package source +pushd ~/srsLTE +git archive $COMMIT -o $BUILD_DIR/srslte_$DISTRO.tar.gz +popd + +# Copy original tarball +cp ~/build-area/srslte_$RELEASE/$REL_FLAG/srslte_$RELEASE.orig.tar.gz $BUILD_DIR + +mkdir $BUILD_DIR/srsLTE +pushd $BUILD_DIR/srsLTE +tar -vxzf ../srslte_$DISTRO.tar.gz +popd