2 cd ${0%/*} ||
exit 1 # run from this directory
4 [ -d "$WM_PROJECT_DIR" ] ||
{
5 echo "Error: WM_PROJECT_DIR directory does not exist"
6 echo " Check the OpenFOAM entries in your dot-files and source them."
7 echo " WM_PROJECT_DIR=$WM_PROJECT_DIR"
15 # remove html directory in background
16 mv html html-stagedRemove$$
2> /dev
/null
17 rm -rf html-stagedRemove$$
>/dev
/null
2>&1 &
19 # ensure that created files are readable by everyone
23 # fix permissions (NB: '+X' and not '+x'!)
24 chmod -R a
+rX html latex man
2>/dev
/null
30 # ----------------------------------------------------------------- end-of-file