[brlcad-commits] CVS: brlcad/sh indent.sh,1.13,1.14
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: Sean M. <br...@us...> - 2007-01-29 01:22:28
|
Update of /cvsroot/brlcad/brlcad/sh In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12718 Modified Files: indent.sh Log Message: er, if the diff is empty then it means there was no change. logic error somehow snuck in Index: indent.sh =================================================================== RCS file: /cvsroot/brlcad/brlcad/sh/indent.sh,v retrieving revision 1.13 retrieving revision 1.14 diff -w -u -r1.13 -r1.14 --- indent.sh 27 Jan 2007 07:00:02 -0000 1.13 +++ indent.sh 29 Jan 2007 01:22:25 -0000 1.14 @@ -140,14 +140,15 @@ # if the file changed, move it into place filediff="`diff $file $file.indent.new`" if [ "x$filediff" = "x" ] ; then + # no change, silently remove file + rm -f "$file.indent.new" + else if [ -f "$file.indent.old" ] ; then echo "WARNING: $file.indent.old was in the way (overwritten)" rm -f "$file.indent.old" fi mv "$file" "$file.indent.old" mv "$file.indent.new" "$file" - else - rm -f "$file.indent.new" fi done # iteration over files |