Opened 12 years ago
Closed 12 years ago
#577 closed defect (Fixed)
Fixed copyright scripts for Mac OS
Reported by: | arango | Owned by: | arango |
---|---|---|---|
Priority: | major | Milestone: | Release ROMS/TOMS 3.6 |
Component: | Nonlinear | Version: | 3.6 |
Keywords: | Cc: |
Description
The copyright.sh and copyright.bash were failing on the Macs due to the syntax for sed. We need to add the -e argument so now we have:
if ( $verb == 1 ) then grep -l "${search}" $FILE && sed -i -e "s|${search}|${replace}|g" $FILE else grep -l "${search}" $FILE > /dev/null && sed -i -e "s|${search}|${replace}|g" $FILE endif
Many thanks to Dave Robertson for fixing these scripts. They now work on both Unix and Mac operating systems.
Note:
See TracTickets
for help on using tickets.