/[MITgcm]/MITgcm/tools/genmake
ViewVC logotype

Diff of /MITgcm/tools/genmake

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.22.2.8 by adcroft, Wed Jan 31 23:50:41 2001 UTC revision 1.22.2.9 by adcroft, Thu Feb 1 16:07:04 2001 UTC
# Line 10  Line 10 
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
# Line 51  while ($#allargs) Line 51  while ($#allargs)
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=:
# Line 125  endif Line 125  endif
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
# Line 152  if (! $?EXECUTABLE) set EXECUTABLE  = ( Line 152  if (! $?EXECUTABLE) set EXECUTABLE  = (
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)

Legend:
Removed from v.1.22.2.8  
changed lines
  Added in v.1.22.2.9

  ViewVC Help
Powered by ViewVC 1.1.22