<p><b>dwj07@fsu.edu</b> 2011-10-17 09:20:45 -0600 (Mon, 17 Oct 2011)</p><p><br>
 -- BRANCH COMMIT --<br>
<br>
 Script updates Makefile now as well, and skip subroutine rename is now the default.<br>
 This is so you don't accidently rename something that you don't want renamed.<br>
</p><hr noshade><pre><font color="gray">Modified: branches/source_renaming/convertFile.sh
===================================================================
--- branches/source_renaming/convertFile.sh        2011-10-17 15:04:26 UTC (rev 1083)
+++ branches/source_renaming/convertFile.sh        2011-10-17 15:20:45 UTC (rev 1084)
@@ -4,6 +4,7 @@
 SEARCHFILES=`ls src/core_sw/*.F`
 REPLACEFILES=`ls src/core_sw/*.F`
 SUBPREFIX=&quot;sw_&quot;
+FILEPREFIX=&quot;mpas_sw_&quot;
 
 for FILE in $SEARCHFILES
 do
@@ -15,7 +16,7 @@
                 NEWSUBNAME=`echo &quot;$SUBPREFIX$NEWSUBNAME&quot;`
 
                 echo &quot;From file: $FILE&quot;
-                echo &quot;Do you want to replace $SUBNAME with $NEWSUBNAME? (y/n/s) (s = skip)&quot;
+                echo &quot;Do you want to replace $SUBNAME with $NEWSUBNAME? (y/n/S) (S = skip (default))&quot;
                 read ANS
 
                 if [ $ANS ]; then
@@ -23,9 +24,11 @@
                                 echo &quot;Enter the name you would like to replace $SUBNAME with:&quot;
                                 read NEWSUBNAME
                                 ANS=&quot;y&quot;
+                        elif [ $AND == &quot;y&quot; ]; then
+                                ANS=&quot;y&quot;
                         fi
                 else
-                        ANS=&quot;y&quot;
+                        ANS=&quot;n&quot;
                 fi
 
 
@@ -41,9 +44,14 @@
         done
 done
 
-for FILE in $FILES
+for FILE in $SEARCHFILES
 do
-        NAME=`echo $FILE | sed &quot;s/module_/mpas_sw_/g&quot;`
+        NAME=`echo $FILE | sed &quot;s/module_/${FILEPREFIX}/g&quot;`
+        MAKEFILE=`echo $FILE | sed &quot;s/module.*F/Makefile/g&quot;`
+
         mv ${FILE} ${NAME}
+
+        cat $MAKEFILE | sed &quot;s/module_/$FILEPREFIX/g&quot; &gt; temp
+        mv temp $MAKEFILE
 done
 

</font>
</pre>