Changeset 634 for trunk/LMDZ.GENERIC/create_make_gcm
- Timestamp:
- Apr 26, 2012, 10:03:22 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/create_make_gcm
r375 r634 153 153 do 154 154 fili=`basename $i .F` 155 test=` ( head $i | grep ' PROGRAM' ) ` 155 # Check if file is a routine or main program 156 # i.e: look for the "program" keword preceeded by leading spaces 157 test=` ( head $i | grep -i '^ *program' ) ` 156 158 if [ "$test" = "" ] ; then 159 # if it is not a main program, add it to the list 157 160 listlib=$listlib" "$fili 158 161 fi … … 161 164 do 162 165 fili=`basename $i .F90` 163 test=` ( head $i | grep ' PROGRAM' ) ` 166 # Check if file is a routine or main program 167 # i.e. look for "program" keyword (with possibly some leading spaces) 168 test=` ( head $i | grep -i '^ \{0,\}program' ) ` 164 169 if [ "$test" = "" ] ; then 170 # if it is not a main program, add it to the list 165 171 listlib=$listlib" "$fili 166 172 fi … … 238 244 echo ' $(COMPILE90) $(LIBF)/'$diri'/'$trufile' ; \' 239 245 fi 246 ## If a module, handle created module descriptor file 240 247 MODU=0; egrep -i '^ *module ' $trufile> /dev/null 2>&1 && MODU=1 241 248 if [ "$MODU" -eq '1' -a "$CRAY" != '1' ] ; then
Note: See TracChangeset
for help on using the changeset viewer.