Allwmake and {applications,src}/Allwmake use wmake/wmakeCheckPwd

- solves problems that can occur when checking $PWD and links are involved
This commit is contained in:
Mark Olesen
2009-08-07 20:24:11 +02:00
parent 1d8294b5b0
commit bdbdd25bac
4 changed files with 16 additions and 14 deletions

View File

@ -1,13 +1,12 @@
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
if [ "$PWD" != "$WM_PROJECT_DIR" ]
then
wmakeCheckPwd "$WM_PROJECT_DIR" || {
echo "Error: Current directory is not \$WM_PROJECT_DIR"
echo " The environment variables are inconsistent with the installation."
echo " Check the OpenFOAM entries in your dot-files and source them."
exit 1
fi
}
# wmake is required for subsequent targets
( cd wmake/src && make )