Opened 11 years ago

Closed 11 years ago

#574 closed defect (Done)

Modified grep syntax in build scripts

Reported by: arango Owned by: arango
Priority: major Milestone: Release ROMS/TOMS 3.6
Component: Nonlinear Version: 3.6
Keywords: Cc:

Description (last modified by arango)

Changed the grep syntax in all build script which evaluates a Perl regular expression. This syntax is different in various operating system and we may get errors.

In build.sh we now have:

      if (`echo $1 | grep '^[0-9]\+$'` != "" ) then
        ...
      endif

instead of

      if (`echo $1 | grep -P '^\d+$'` != "" ) then
        ...
      endif

In build.bash we now have:

       test=`echo $1 | grep '^[0-9]\+$'`

instead of

       test=`echo $1 | grep -P '^\d+$'`

Notice that both the plot and test repositories are also updated.

Change History (1)

comment:1 by arango, 11 years ago

Description: modified (diff)
Resolution: Done
Status: newclosed
Note: See TracTickets for help on using tickets.