10 |
# Default lists |
# Default lists |
11 |
set DISABLE = ( aim ) |
set DISABLE = ( aim ) |
12 |
set ENABLE = ( ) |
set ENABLE = ( ) |
13 |
set MYMODS = ( ) |
set MODS = ( ) |
14 |
|
|
15 |
# Grab variables/lists from .genmakerc |
# Grab variables/lists from .genmakerc |
16 |
if (-r .genmakerc) source .genmakerc |
if (-r .genmakerc) source .genmakerc |
51 |
endif |
endif |
52 |
set ROOTDIR = ( `echo $arg | sed 's/-rootdir=//' `) |
set ROOTDIR = ( `echo $arg | sed 's/-rootdir=//' `) |
53 |
breaksw |
breaksw |
54 |
case -mymods: |
case -mods: |
55 |
case -mymods=: |
case -mods=: |
56 |
echo "To specify an additional source directory you must specify one with -mymods=dir" |
echo "To specify an additional source directory you must specify one with -mods=dir" |
57 |
echo "with NO space eg. -mymods=../code or -mymods=/usr/people/joe/src" |
echo "with NO space eg. -mods=../code or -mods=/usr/people/joe/src" |
58 |
exit |
exit |
59 |
breaksw |
breaksw |
60 |
case -mymods=*: |
case -mods=*: |
61 |
set MYMODS = ( $MYMODS `echo $arg | sed 's/-mymods=//' | sed 's/,/ /' `) |
set MODS = ( $MODS `echo $arg | sed 's/-mods=//' | sed 's/,/ /' `) |
62 |
breaksw |
breaksw |
63 |
case -disable: |
case -disable: |
64 |
case -disable=: |
case -disable=: |
125 |
if (! -d $ROOTDIR) then |
if (! -d $ROOTDIR) then |
126 |
echo Root directory $ROOTDIR not found.;exit 1 |
echo Root directory $ROOTDIR not found.;exit 1 |
127 |
endif |
endif |
128 |
# If -mymods wasn't specified then we will assume that we can find all the |
# If -mods wasn't specified then we will assume that we can find all the |
129 |
# source code in the standard directories |
# source code in the standard directories |
130 |
if (! $?MYMODS) then |
if (! $?MODS) then |
131 |
set SOURCEDIRS = ( ) |
set SOURCEDIRS = ( ) |
132 |
set INCLUDEDIRS = ( . ) |
set INCLUDEDIRS = ( . ) |
133 |
else |
else |
134 |
set SOURCEDIRS = ( $MYMODS ) |
set SOURCEDIRS = ( $MODS ) |
135 |
set INCLUDEDIRS = ( . $MYMODS ) |
set INCLUDEDIRS = ( . $MODS ) |
136 |
endif |
endif |
137 |
if (! $?BUILDDIR) set BUILDDIR = ( . ) |
if (! $?BUILDDIR) set BUILDDIR = ( . ) |
138 |
if (! -d $BUILDDIR) then |
if (! -d $BUILDDIR) then |
152 |
foreach dr ($SOURCEDIRS) |
foreach dr ($SOURCEDIRS) |
153 |
set adr=$dr |
set adr=$dr |
154 |
if (! -d $adr) then |
if (! -d $adr) then |
155 |
echo Mymods directory $adr not found.; exit 1 |
echo mods directory $adr not found.; exit 1 |
156 |
endif |
endif |
157 |
echo Adding mymods directory $adr |
echo Adding mods directory $adr |
158 |
end |
end |
159 |
if (! $?STANDARDDIRS) set STANDARDDIRS=(eesupp model diags) |
if (! $?STANDARDDIRS) set STANDARDDIRS=(eesupp model diags) |
160 |
foreach dr ($STANDARDDIRS) |
foreach dr ($STANDARDDIRS) |