50 |
echo "***" Command line \"$arg\" will override this. |
echo "***" Command line \"$arg\" will override this. |
51 |
endif |
endif |
52 |
set ROOTDIR = ( `echo $arg | sed 's/-rootdir=//' `) |
set ROOTDIR = ( `echo $arg | sed 's/-rootdir=//' `) |
|
if (! $?EXEDIR) set EXEDIR = ( . ) |
|
53 |
breaksw |
breaksw |
54 |
case -mods: |
case -mods: |
55 |
case -mods=: |
case -mods=: |
119 |
# but if it was supplied then we should place the executable in the build dir |
# but if it was supplied then we should place the executable in the build dir |
120 |
if (! $?ROOTDIR) then |
if (! $?ROOTDIR) then |
121 |
set pwd=`pwd` |
set pwd=`pwd` |
122 |
if ($pwd:t == bin) then |
if ($pwd:t == bin & -d ../model & -d ../eesupp & -d ../pkg) then |
123 |
if (-d ../exe & -d ../model & -d ../eesupp & -d ../pkg) then |
set ROOTDIR = ( .. ) |
|
set ROOTDIR = ( .. ) |
|
|
if (! $?EXEDIR) set EXEDIR = ( ../exe ) |
|
|
else if (-d ../model & -d ../eesupp & -d ../pkg) then |
|
|
echo In bin with no exe |
|
|
if (! $?EXEDIR) set EXEDIR = ( . ) |
|
|
endif |
|
124 |
endif |
endif |
125 |
endif |
endif |
126 |
# Scan for logical ROOTDIR |
# Scan for logical ROOTDIR |
128 |
foreach dr (. .. ../.. ../../.. ../../../.. ../../../../..) |
foreach dr (. .. ../.. ../../.. ../../../.. ../../../../..) |
129 |
if (-d $dr/model & -d $dr/eesupp & -d $dr/pkg) then |
if (-d $dr/model & -d $dr/eesupp & -d $dr/pkg) then |
130 |
set ROOTDIR = $dr |
set ROOTDIR = $dr |
|
if (! $?EXEDIR) set EXEDIR = ( . ) |
|
131 |
echo ROOTDIR was not specified. Setting ROOTDIR = \"$ROOTDIR\" |
echo ROOTDIR was not specified. Setting ROOTDIR = \"$ROOTDIR\" |
132 |
break |
break |
133 |
endif |
endif |
154 |
if (! -d $BUILDDIR) then |
if (! -d $BUILDDIR) then |
155 |
echo Build directory $BUILDDIR not found.;exit 1 |
echo Build directory $BUILDDIR not found.;exit 1 |
156 |
endif |
endif |
157 |
|
if (! $?EXEDIR) then |
158 |
|
set pwd=`pwd` |
159 |
|
if ($pwd:t == bin & -d ../exe & $ROOTDIR == ..) then |
160 |
|
set EXEDIR = ( ../exe ) |
161 |
|
else |
162 |
|
set EXEDIR = ( . ) |
163 |
|
endif |
164 |
|
endif |
165 |
if (! -d $EXEDIR) then |
if (! -d $EXEDIR) then |
166 |
echo Executable directory $EXEDIR not found.;exit 1 |
echo Executable directory $EXEDIR not found.;exit 1 |
167 |
endif |
endif |