mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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>
This commit is contained in:
parent
1cf31eeaf9
commit
a798bb010c
1 changed files with 15 additions and 3 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Reference in a new issue