ENH: add canCompile test to RunFunctions

- allow conditional skipping of tutorials (for example) if wmake or
  the expected compiler is not available
This commit is contained in:
Mark Olesen
2020-06-08 21:46:59 +02:00
parent b2467ff442
commit 51db3c85a7
5 changed files with 53 additions and 3 deletions

View File

@ -3,6 +3,12 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
if ! canCompile
then
echo "skipping tutorial $PWD"
exit 0
fi
wmake calcRadiusField
wclean calcRadiusField