mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Always rebuild when local changes are present
Signed-off-by: Jef Driesen <jef@libdivecomputer.org>
This commit is contained in:
parent
19dd25c71c
commit
c572148ab6
1 changed files with 2 additions and 2 deletions
|
@ -177,9 +177,9 @@ if [ "$MXEBUILDTYPE" = "x86_64-w64-mingw32.shared" ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$BUILDDIR"
|
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)
|
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
|
rm -f build.libdivecomputer
|
||||||
mkdir -p libdivecomputer
|
mkdir -p libdivecomputer
|
||||||
cd libdivecomputer
|
cd libdivecomputer
|
||||||
|
|
Loading…
Reference in a new issue