mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:23:25 +00:00
build-system: detect libdivecomputer changes in MXE build
Automatically trigger a rebuild of libdivecomputer if it has changed since the last build. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
dde2049027
commit
d35c3c0fbf
1 changed files with 3 additions and 1 deletions
|
@ -173,7 +173,9 @@ if [ ! -f libdivecomputer/configure ] ; then
|
|||
fi
|
||||
|
||||
cd "$BUILDDIR"
|
||||
if [[ ! -d libdivecomputer || -f build.libdivecomputer ]] ; then
|
||||
CURRENT_SHA=$(cd "$BASEDIR"/subsurface/libdivecomputer ; git describe)
|
||||
PREVIOUS_SHA=$(cat "libdivecomputer.SHA" 2>/dev/null || echo)
|
||||
if [ ! "$CURRENT_SHA" = "$PREVIOUS_SHA" ] || [ ! -d libdivecomputer ] || [ -f build.libdivecomputer ] ; then
|
||||
rm -f build.libdivecomputer
|
||||
mkdir -p libdivecomputer
|
||||
cd libdivecomputer
|
||||
|
|
Loading…
Add table
Reference in a new issue