File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 2
2
cd ${0%/* } || exit 1 # Run from this directory
3
3
4
4
# Parse arguments for library compilation
5
- . $WM_PROJECT_DIR / wmake/scripts/AllwmakeParseArguments
5
+ . wmake/scripts/AllwmakeParseArguments
6
6
7
+ # Perform various checks
7
8
wmakeCheckPwd " $WM_PROJECT_DIR " || {
8
9
echo " Allwmake error: Current directory is not \$ WM_PROJECT_DIR"
9
10
echo " The environment variables are inconsistent with the installation."
Original file line number Diff line number Diff line change 2
2
cd ${0%/* } || exit 1 # Run from this directory
3
3
4
4
# Parse arguments for library compilation
5
- . $WM_PROJECT_DIR /wmake/scripts/AllwmakeParseArguments
5
+ . .. /wmake/scripts/AllwmakeParseArguments
6
6
7
+ # Perform various checks
7
8
wmakeCheckPwd " $WM_PROJECT_DIR /applications" || {
8
9
echo " Allwmake error: Current directory is not \$ WM_PROJECT_DIR/applications"
9
10
echo " The environment variables are inconsistent with the installation."
Original file line number Diff line number Diff line change 2
2
cd ${0%/* } || exit 1 # Run from this directory
3
3
4
4
# Parse arguments for library compilation
5
- . $WM_PROJECT_DIR /wmake/scripts/AllwmakeParseArguments
5
+ . .. /wmake/scripts/AllwmakeParseArguments
6
6
7
+ # Perform various checks
7
8
wmakeCheckPwd " $WM_PROJECT_DIR /src" || {
8
9
echo " Allwmake error: Current directory is not \$ WM_PROJECT_DIR/src"
9
10
echo " The environment variables are inconsistent with the installation."
Original file line number Diff line number Diff line change 2
2
# ========= |
3
3
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
4
# \\ / O peration |
5
- # \\ / A nd | Copyright (C) 2014-2016 OpenFOAM Foundation
5
+ # \\ / A nd | Copyright (C) 2014-2017 OpenFOAM Foundation
6
6
# \\/ M anipulation |
7
7
# ------------------------------------------------------------------------------
8
8
# License
34
34
# ------------------------------------------------------------------------------
35
35
Script=${0##*/ }
36
36
37
+ if [ -z " $WM_PROJECT_DIR " ]
38
+ then
39
+ echo " $Script error: The OpenFOAM environment is not set."
40
+ echo " Check the OpenFOAM entries in your dot-files and source them."
41
+ echo " If in doubt, please read:"
42
+ echo " http://openfoam.org/download/source/setting-environment"
43
+ exit 1
44
+ fi
45
+
37
46
usage () {
38
47
exec 1>&2
39
48
while [ " $# " -ge 1 ]; do echo " $1 " ; shift ; done
You can’t perform that action at this time.
0 commit comments