Changeset 634 for trunk/LMDZ.COMMON/create_make_gcm
- Timestamp:
- Apr 26, 2012, 10:03:22 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/create_make_gcm
r134 r634 141 141 do 142 142 fili=`basename $i .F` 143 test=` ( head $i | grep ' PROGRAM' ) ` 143 # Check if file is a routine or main program 144 # i.e: look for the "program" keword preceeded by leading spaces 145 test=` ( head $i | grep -i '^ *program' ) ` 144 146 if [ "$test" = "" ] ; then 147 # if it is not a main program, add it to the list 145 148 listlib=$listlib" "$fili 146 149 fi … … 149 152 do 150 153 fili=`basename $i .F90` 151 test=` ( head $i | grep ' PROGRAM' ) ` 154 # Check if file is a routine or main program 155 # i.e. look for "program" keyword (with possibly some leading spaces) 156 test=` ( head $i | grep -i '^ \{0,\}program' ) ` 152 157 if [ "$test" = "" ] ; then 158 # if it is not a main program, add it to the list 153 159 listlib=$listlib" "$fili 154 160 fi … … 249 255 do 250 256 fili=`basename $i .c` 251 test=` ( head $i | grep ' PROGRAM' ) ` 257 # Check if file is a function or main program 258 # i.e. look for "int main" keywords (with possibly some leading spaces) 259 test=` ( head $i | grep '^ \{0,\}int main' ) ` 252 260 if [ "$test" = "" ] ; then 261 # if it is not a main program, add it to the list 253 262 listlib=$listlib" "$fili 254 263 fi
Note: See TracChangeset
for help on using the changeset viewer.