Alexander Couzens | c243463 | 2022-07-19 10:20:39 +0000 | [diff] [blame] | 1 | #!/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 | |
| 6 | if [ ! -e rebar.config ] ; then |
| 7 | echo "Please execute $0 from the top directory of the osmo_dia2gsup directory" |
| 8 | exit 1 |
| 9 | fi |
| 10 | |
| 11 | set -x |
| 12 | rm -rf _checkouts _build |
| 13 | rebar3 get-deps |
| 14 | mkdir _checkouts |
| 15 | mv ./_build/default/lib/* _checkouts/ |
| 16 | mv ./_build/default/plugins/* _checkouts/ |
Alexander Couzens | b88b156 | 2022-08-30 14:07:35 +0200 | [diff] [blame] | 17 | # delete erlang bytecode |
| 18 | find _checkouts/ -iname '*beam' -delete |
Alexander Couzens | c243463 | 2022-07-19 10:20:39 +0000 | [diff] [blame] | 19 | tar czf build_dep.tar.gz ./_checkouts |