diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-04 10:47:57 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-04 10:49:20 -0700 |
commit | a798bb010c63e84e2c4551b2ff73435cae2b3126 (patch) | |
tree | 821e1185b52a7fe8d70fb65a57c32150b3662479 /scripts | |
parent | 1cf31eeaf926a90853919fcbe51f5830b88d9bd3 (diff) | |
download | subsurface-a798bb010c63e84e2c4551b2ff73435cae2b3126.tar.gz |
Build script: make sure the versions we want to build exist
The script didn't do the right thing if it had been run before and was
re-run to create the latest build. We need to actually pull the latest
versions of the different git repositories and make sure that the branches
and commits that we want exist.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build.sh | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/scripts/build.sh b/scripts/build.sh index 361e02ca6..c740e8be0 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -72,7 +72,11 @@ if [ ! -d libgit2 ] ; then fi cd libgit2 # let's build with a recent enough version of master for the latest features -git checkout c11daac9de2 +git pull +if [ ! git checkout c11daac9de2 ] ; then + echo "Can't find the right commit in libgit2 - giving up" + exit 1 +fi mkdir -p build cd build cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT -DCMAKE_BUILD_TYPE=Release -DBUILD_CLAR=OFF .. @@ -100,7 +104,11 @@ if [ ! -d libdivecomputer ] ; then fi fi cd libdivecomputer -git checkout Subsurface-testing +git pull +if [ ! git checkout Subsurface-testing ] ; then + echo "can't check out the Subsurface-testing branch of libdivecomputer -- giving up" + exit 1 +fi if [ ! -f configure ] ; then autoreconf --install fi @@ -120,7 +128,11 @@ if [ ! -d marble-source ] ; then fi fi cd marble-source -git checkout Subsurface-testing +git pull +if [ ! git checkout Subsurface-testing ] ; then + echo "can't check out the Subsurface-testing branch of marble -- giving up" + exit 1 +fi mkdir -p build cd build cmake -DCMAKE_BUILD_TYPE=Release -DQTONLY=TRUE -DQT5BUILD=ON \ |