summaryrefslogtreecommitdiffstats
path: root/packaging/windows/mxe-based-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/windows/mxe-based-build.sh')
-rwxr-xr-xpackaging/windows/mxe-based-build.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/packaging/windows/mxe-based-build.sh b/packaging/windows/mxe-based-build.sh
index 80ed081e0..f7c4f6ac0 100755
--- a/packaging/windows/mxe-based-build.sh
+++ b/packaging/windows/mxe-based-build.sh
@@ -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