Correct math.h handling on Lynx again.
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 17 Jun 1994 19:06:33 +0000 (19:06 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 17 Jun 1994 19:06:33 +0000 (19:06 +0000)
From-SVN: r7511

gcc/fixincludes

index bee61d2d0c13b97f8076a5c5f72a9f6ee078dc01..323ccaca35041a00c79ea3c0ee2b843f3a61212f 100755 (executable)
@@ -1395,10 +1395,10 @@ if [ -r ${LIB}/$file ]; then
         dbl_max_def=`echo $dbl_max_def | sed 's/.*define[      ]*DBL_MAX[      ]*//'`
         sed -e "/define[       ]HUGE_VAL[      ]DBL_MAX/s/DBL_MAX/$dbl_max_def/" \
           ${LIB}/$file > ${LIB}/${file}.sed
+       rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
       fi
     fi
   fi
-  rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
 
   if cmp $file ${LIB}/$file >/dev/null 2>&1; then
     echo Deleting ${LIB}/$file\; no fixes were needed.