Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
be case insensitive when trying to change main name in F90 files
authorAugustin Degomme <degomme@idpann.imag.fr>
Fri, 15 Feb 2013 09:39:44 +0000 (10:39 +0100)
committerAugustin Degomme <degomme@idpann.imag.fr>
Fri, 15 Feb 2013 09:39:44 +0000 (10:39 +0100)
src/smpi/smpif90.in

index d7cfde1..2d76ad2 100644 (file)
@@ -25,7 +25,7 @@ while [ -n "$1" ]; do
          SRCFILE="$ARG"
       fi
       #replace "program main_name by subroutine user\_main (and the end clause as well)"
          SRCFILE="$ARG"
       fi
       #replace "program main_name by subroutine user\_main (and the end clause as well)"
-      sed 's/[[:space:]]*program[[:space:]]*\([a-zA-Z0-9\-\_]*\)/subroutine user\_main /g'  ${ARG} > ${TMPFILE}
+      sed 's/[[:space:]]*program[[:space:]]*\([a-zA-Z0-9\-\_]*\)/subroutine user\_main /gI'  ${ARG} > ${TMPFILE}
       SRCFILE="${TMPFILE}"
       CMDLINE="${CMDLINE} ${SRCFILE} "
       ;;
       SRCFILE="${TMPFILE}"
       CMDLINE="${CMDLINE} ${SRCFILE} "
       ;;