#!/bin/bash
./compile_code.sh "$@"

XROAD=`pwd`

cd $XROAD/packages/xroad/
dpkg-buildpackage -tc -b -us -uc
cd $XROAD/packages/xroad-jetty9/
dpkg-buildpackage -tc -b -us -uc

#!/bin/bash

set -e

./compile_code.sh "$@"

XROAD=`pwd`

cd $XROAD/packages/xroad/
dpkg-buildpackage -tc -b -us -uc
cd $XROAD/packages/xroad-jetty9/
dpkg-buildpackage -tc -b -us -uc

Exit build script on error
Exit build script on error
