Changeset 10448 for NEMO/trunk/doc
- Timestamp:
- 2018-12-21T17:43:27+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/trunk/doc/bin/manuals_checking.sh
r10443 r10448 52 52 53 53 echo 54 echo '¤ Namelist parameters unfollowing naming conventions (^[cdlnr]n_* )'54 echo '¤ Namelist parameters unfollowing naming conventions (^[cdlnr]n_* or uppercase somewhere)' 55 55 56 56 for nlst in $( ls namelists ); do 57 np_list=$( f90nml namelists/$nlst 2> /dev/null | awk '/=/ { print $1 }')57 np_list=$( sed '/^ *[!/&]/d; s|[!/&].*||' namelists/$nlst | tr -d ' ' | cut -d= -f1 ) 58 58 array=() 59 59 60 60 for np in ${np_list}; do 61 61 62 if [[ ! ${np:0:3} =~ ^[cdlnr]n_$ ]]; then62 if [[ ! ${np:0:3} =~ ^[cdlnr]n_$ || $( echo $np | grep [A-Z] ) ]]; then 63 63 array+=$np' ' 64 64 fi
Note: See TracChangeset
for help on using the changeset viewer.