summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-01-14 11:29:26 -0800
committerJim Wilson <wilson@gcc.gnu.org>1993-01-14 11:29:26 -0800
commitc95410798841d37f6a03054f6fe48ca68bb82df2 (patch)
tree40131e6eb2405857bbfb0657f27919a85c3aad5b /gcc
parenta1747d2c89a29f9a380073f0f6aa264cc0edda9c (diff)
downloadgcc-c95410798841d37f6a03054f6fe48ca68bb82df2.tar.gz
(egrep and sed loop): Don't print messages about files that need no change.
From-SVN: r3239
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/fixinc.sco3
-rwxr-xr-xgcc/fixinc.svr43
2 files changed, 4 insertions, 2 deletions
diff --git a/gcc/fixinc.sco b/gcc/fixinc.sco
index ad849892cca..8ec8dea7eec 100755
--- a/gcc/fixinc.sco
+++ b/gcc/fixinc.sco
@@ -145,7 +145,6 @@ while [ $# != 0 ]; do
echo 'Checking header files:'
for file in $files; do
if egrep '!__STDC__' $file >/dev/null; then
- echo Fixing $file
if [ -r $file ]; then
cp $file $2/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w $2/$file
@@ -163,6 +162,8 @@ while [ $# != 0 ]; do
mv $2/$file.sed $2/$file
if cmp $file $2/$file >/dev/null 2>&1; then
rm $2/$file
+ else
+ echo Fixed $file
fi
fi
fi
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4
index 40516749933..9560e741a95 100755
--- a/gcc/fixinc.svr4
+++ b/gcc/fixinc.svr4
@@ -148,7 +148,6 @@ while [ $# != 0 ]; do
files=`find . -name '*.h' -type f -print`
echo 'Checking header files:'
for file in $files; do
- echo Fixing $file
if [ -r $file ]; then
cp $file $2/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w $2/$file
@@ -197,6 +196,8 @@ while [ $# != 0 ]; do
mv $2/$file.sed $2/$file
if cmp $file $2/$file >/dev/null 2>&1; then
rm $2/$file
+ else
+ Fixed $file
fi
fi
done