diff --git a/packaging/windows/mxe-based-build.sh b/packaging/windows/mxe-based-build.sh index 3a9380767..3bc37a3a7 100755 --- a/packaging/windows/mxe-based-build.sh +++ b/packaging/windows/mxe-based-build.sh @@ -177,9 +177,9 @@ if [ "$MXEBUILDTYPE" = "x86_64-w64-mingw32.shared" ] ; then fi cd "$BUILDDIR" -CURRENT_SHA=$(cd "$BASEDIR"/subsurface/libdivecomputer ; git describe --always --long) +CURRENT_SHA=$(cd "$BASEDIR"/subsurface/libdivecomputer ; git describe --always --long --dirty) PREVIOUS_SHA=$(cat "libdivecomputer.SHA" 2>/dev/null || echo) -if [ ! "$CURRENT_SHA" = "$PREVIOUS_SHA" ] || [ ! -d libdivecomputer ] || [ -f build.libdivecomputer ] ; then +if [ ! "$CURRENT_SHA" = "$PREVIOUS_SHA" ] || [[ "$CURRENT_SHA" == *-dirty ]] || [ ! -d libdivecomputer ] || [ -f build.libdivecomputer ] ; then rm -f build.libdivecomputer mkdir -p libdivecomputer cd libdivecomputer