From a15fe3e78e31653bec099081fbb423bdecc955a4 Mon Sep 17 00:00:00 2001 From: sjplimp Date: Fri, 29 Jan 2010 20:32:10 +0000 Subject: [PATCH] git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@3761 f3b2605a-c512-4ea7-a41b-209d697bcdaa --- src/Make.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Make.sh b/src/Make.sh index 24b62a6fb0..f2feb8f101 100644 --- a/src/Make.sh +++ b/src/Make.sh @@ -4,30 +4,28 @@ # sh Make.sh Makefile.list # function to create one style_*.h file -# return 0 so will not kill make if last rm command is a no-op style () { list=`grep -l $1 $2*.h` if (test -e style_$3.tmp) then - rm style_$3.tmp + rm -f style_$3.tmp fi for file in $list; do qfile="\"$file\"" echo "#include $qfile" >> style_$3.tmp done if (test ! -e style_$3.tmp) then - rm style_$3.h + rm -f style_$3.h touch style_$3.h elif (test ! -e style_$3.h) then mv style_$3.tmp style_$3.h - rm Obj_*/$4.d + rm -f Obj_*/$4.d elif (test "`diff --brief style_$3.h style_$3.tmp`" != "") then mv style_$3.tmp style_$3.h - rm Obj_*/$4.d + rm -f Obj_*/$4.d else - rm style_$3.tmp + rm -f style_$3.tmp fi - return 0 } # create individual style files