blob: 44b7b4db2b30bf465aacabf46a521f1ef836d8a0 [file] [log] [blame]
Alexander Couzensc2434632022-07-19 10:20:39 +00001#!/bin/sh -e
2
3# execute the script from the top dir of this repository to generate
4# a build_dep.tar.gz for building with debian/OBS
5
6if [ ! -e rebar.config ] ; then
7 echo "Please execute $0 from the top directory of the osmo_dia2gsup directory"
8 exit 1
9fi
10
11set -x
12rm -rf _checkouts _build
13rebar3 get-deps
14mkdir _checkouts
15mv ./_build/default/lib/* _checkouts/
16mv ./_build/default/plugins/* _checkouts/
Alexander Couzensb88b1562022-08-30 14:07:35 +020017# delete erlang bytecode
18find _checkouts/ -iname '*beam' -delete
Alexander Couzensc2434632022-07-19 10:20:39 +000019tar czf build_dep.tar.gz ./_checkouts