To: hansen@ncar Subject: mksrc Ken: Re my msg yesterday, I have put sed commands for the makefile in the foreach loop rather than building the sed script for the makefile (which stops if > 199 commands). This seems to work reasonably well, altho for unknown reasons, parts of 2 file names were still in upper case in the makefile. --Ben foreach oldname (*.h *.f) set newname = `echo $oldname | tr "[A-Z]" "[a-z]"` echo mv $oldname to $newname mv $oldname $newname # # If current file is a .h file, include its name in a sed script # to be used on source files (see below): # if $newname == {$newname:r}.h then # is header file echo "s/$oldname/$newname/" >> sed_inc.script else # is source file # # Change source and object names in makefile to lower case: # sed -e "s/$oldname/$newname/" -e "s/$oldname:r.o/$newname:r.o/" \ makefile > Makefile mv Makefile makefile endif end