#!/bin/sh -ex # Build script for https://jenkins.osmocom.org/ rebar3 compile rebar3 eunit if ! rebar3 fmt --check; then rebar3 fmt -w git diff set +x echo echo "ERROR: please run 'rebar3 fmt -w' and re-submit the patch" echo exit 1 fi