Ensure compiled scripts are updated if the scripts themselves are updated
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
395e0792d8
commit
167d1a6f93
8
build.sh
8
build.sh
|
@ -31,6 +31,14 @@ if [[ -n "${clean}" ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
# Remove compiled LUA scripts if older than the plain ones
|
||||
for scriptname in src/lua/scripts/*.lua; do
|
||||
if [ -f "${scriptname}.hex" ] && [ "${scriptname}.hex" -ot "${scriptname}" ]; then
|
||||
echo "INFO: ${scriptname} is outdated and will be recompiled"
|
||||
rm "${scriptname}.hex"
|
||||
fi
|
||||
done
|
||||
|
||||
# Configure build, pass CMake CACHE entries if present
|
||||
# Wrap multiple options in "" as first argument to ./build.sh:
|
||||
# ./build.sh "-DA=1 -DB=2" install
|
||||
|
|
Loading…
Reference in New Issue