View Revisions: Issue #2424

Summary 0002424: Proposition for a clearer message when OpenFOAM environment is not loaded in the shell
Revision 2017-01-08 21:01 by wyldckat
Additional Information Or overload 'wmakeCheckPwd'?
I also thought of overloading 'wmakeCheckPwd' with an additional option '-e' for environment checking, so that these 'Allwmake' scripts would delegate the current 2/3-step environment check into the script. This also means that the relative path would be used, e.g. in the root 'Allwmake':

   wmake/wmakeCheckPwd -e "$WM_PROJECT_DIR" || exit 1

But:
 - One minor problem with this is that it would turn 'wmakeCheckPwd' into a double-purpose script, which would require renaming it.

 - The other issue is that the relative path would fail and none of the informative messages would be emitted, as originally intended in the current 'Allwmake' scripts.
Revision 2017-01-08 20:54 by wyldckat
Additional Information <h3>Or overload 'wmakeCheckPwd'?</h3>
I also thought of overloading 'wmakeCheckPwd' with an additional option '-e' for environment checking, so that these 'Allwmake' scripts would delegate the current 2/3-step environment check into the script. This also means that the relative path would be used, e.g. in the root 'Allwmake':

   wmake/wmakeCheckPwd -e "$WM_PROJECT_DIR" || exit 1

But:
 - One minor problem with this is that it would turn 'wmakeCheckPwd' into a double-purpose script, which would require renaming it.

 - The other issue is that the relative path would fail and none of the informative messages would be emitted, as originally intended in the current 'Allwmake' scripts.