#!/bin/sh

# execute the script from the top dir of this repository to generate
# a build_dep.tar.gz for building with debian/OBS

if [ ! -e rebar.config ] ; then
	echo "Please execute $0 from the top directory of the osmo_dia2gsup directory"
	exit 1
fi

rm -rf _checkouts _build
rebar3 get-deps
mkdir _checkouts
mv ./_build/default/lib/* _checkouts/
mv ./_build/default/plugins/* _checkouts/
tar czf build_dep.tar.gz ./_checkouts
