From: Richard Stallman Date: Tue, 18 May 1993 19:32:56 +0000 (+0000) Subject: Use $file. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78c5c64609b46d501b45a9d20dfc3e5fb2ab308a;p=gcc.git Use $file. Use $file. rather than $file.sed when $file is or might be more than 10 characters long. From-SVN: r4497 --- diff --git a/gcc/fixincludes b/gcc/fixincludes index 35e513c957b..294077aa3f9 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -303,8 +303,8 @@ while [ $# != 0 ]; do } /^#define.NULL[ ]/ i\ #undef NULL - ' $2/$file > $2/$file.sed - mv $2/$file.sed $2/$file + ' $2/$file > $2/$file. + mv $2/$file. $2/$file if cmp $file $2/$file >/dev/null 2>&1; then rm $2/$file else @@ -734,8 +734,8 @@ fi if [ -r ${LIB}/$file ]; then echo Fixing $file sed -e 's/\#ifdef __i386__ || __vax__/\#if __i386__ || __vax__/g' \ - ${LIB}/$file > ${LIB}/${file}.sed - rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file + ${LIB}/$file > ${LIB}/${file}. + rm -f ${LIB}/$file; mv ${LIB}/${file}. ${LIB}/$file if cmp $file ${LIB}/$file >/dev/null 2>&1; then rm -f ${LIB}/$file fi @@ -791,8 +791,8 @@ fi if [ -r ${LIB}/$file ]; then echo Fixing $file, incorrect \#include sed -e 's@"../machine/endian.h"@@' \ - ${LIB}/$file > ${LIB}/${file}.sed - rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file + ${LIB}/$file > ${LIB}/${file}. + rm -f ${LIB}/$file; mv ${LIB}/${file}. ${LIB}/$file if cmp $file ${LIB}/$file >/dev/null 2>&1; then rm -f ${LIB}/$file fi