diff options
author | Richard Stallman <rms@gnu.org> | 1992-12-30 07:19:45 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-12-30 07:19:45 +0000 |
commit | 2e4cd151b808bc8d75cbcc499a8b6bd949806aa0 (patch) | |
tree | 3da239049d8a6f67cb53697c06002e045a9e3483 | |
parent | 12342f90557915d42293a1cec341f4f8f0c426bb (diff) | |
download | gcc-2e4cd151b808bc8d75cbcc499a8b6bd949806aa0.zip gcc-2e4cd151b808bc8d75cbcc499a8b6bd949806aa0.tar.gz gcc-2e4cd151b808bc8d75cbcc499a8b6bd949806aa0.tar.bz2 |
Chmod each copied file a+r.
From-SVN: r2988
-rwxr-xr-x | gcc/fixinc.svr4 | 29 | ||||
-rwxr-xr-x | gcc/fixincludes | 27 |
2 files changed, 56 insertions, 0 deletions
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4 index 9896f1b..1e80acc 100755 --- a/gcc/fixinc.svr4 +++ b/gcc/fixinc.svr4 @@ -145,6 +145,7 @@ while [ $# != 0 ]; do if [ -r $file ]; then cp $file $2/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w $2/$file + chmod a+r $2/$file # The following have been removed from the sed command below # because it is more useful to leave these things in. @@ -218,6 +219,7 @@ if [ \! -z "$file_to_fix" ]; then echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file fi rm -f /tmp/$base fi @@ -246,6 +248,7 @@ if [ \! -z "$file_to_fix" ]; then echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file fi rm -f /tmp/$base fi @@ -268,6 +271,7 @@ if [ \! -z "$file_to_fix" ]; then echo Checking $file_to_fix cp $file_to_fix /tmp/$base chmod +w /tmp/$base + chmod a+r /tmp/$base ex /tmp/$base <<EOF /^#define[ ]*NULL[ ]*0$/c #ifndef NULL @@ -287,6 +291,7 @@ EOF echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file fi rm -f /tmp/$base fi @@ -326,6 +331,7 @@ EOF echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file fi rm -f /tmp/$base fi @@ -367,6 +373,7 @@ EOF echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file fi rm -f /tmp/$base fi @@ -405,6 +412,7 @@ EOF echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file fi rm -f /tmp/$base fi @@ -465,6 +473,7 @@ EOF echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file fi rm -f /tmp/$base fi @@ -507,6 +516,7 @@ EOF echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file fi fi rm -f /tmp/$base @@ -541,6 +551,7 @@ EOF echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file fi rm -f /tmp/$base fi @@ -577,6 +588,7 @@ EOF echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file fi rm -f /tmp/$base fi @@ -625,6 +637,7 @@ EOF echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file fi rm -f /tmp/$base fi @@ -651,6 +664,7 @@ if [ \! -z "$file_to_fix" ]; then echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file fi rm -f /tmp/$base fi @@ -679,6 +693,7 @@ if [ \! -z "$file_to_fix" ]; then echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file fi rm -f /tmp/$base fi @@ -707,6 +722,7 @@ if [ \! -z "$file_to_fix" ]; then echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file rm -f /tmp/$base fi fi @@ -735,6 +751,7 @@ if [ \! -z "$file_to_fix" ]; then echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file rm -f /tmp/$base fi fi @@ -763,6 +780,7 @@ if [ \! -z "$file_to_fix" ]; then echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file rm -f /tmp/$base fi fi @@ -791,6 +809,7 @@ if [ \! -z "$file_to_fix" ]; then echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file rm -f /tmp/$base fi fi @@ -819,6 +838,7 @@ if [ \! -z "$file_to_fix" ]; then echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file rm -f /tmp/$base fi fi @@ -847,6 +867,7 @@ if [ \! -z "$file_to_fix" ]; then echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file rm -f /tmp/$base fi fi @@ -875,6 +896,7 @@ if [ \! -z "$file_to_fix" ]; then echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file rm -f /tmp/$base fi fi @@ -903,6 +925,7 @@ if [ \! -z "$file_to_fix" ]; then echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file rm -f /tmp/$base fi fi @@ -1016,6 +1039,7 @@ if [ \! -z "$file_to_fix" ]; then echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file fi rm -f /tmp/$base fi @@ -1045,6 +1069,7 @@ if [ \! -z "$file_to_fix" ]; then echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file fi rm -f /tmp/$base fi @@ -1103,6 +1128,7 @@ EOF echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file rm -f /tmp/$base fi @@ -1140,6 +1166,7 @@ if [ -x /bin/sony ]; then echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file fi rm -f /tmp/$base fi @@ -1171,6 +1198,7 @@ if [ -x /bin/sony ]; then echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file fi rm -f /tmp/$base fi @@ -1224,6 +1252,7 @@ if [ \! -z "$file_to_fix" ]; then echo Fixed $file_to_fix rm -f ${LIB}/$file cp /tmp/$base ${LIB}/$file + chmod a+r ${LIB}/$file fi rm -f /tmp/$base fi diff --git a/gcc/fixincludes b/gcc/fixincludes index d07f24d..8d4f7b9 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -224,6 +224,7 @@ while [ $# != 0 ]; do cp $file $2/$file >/dev/null 2>&1 \ || echo "Can't copy $file" chmod +w $2/$file + chmod a+r $2/$file # Following two lines removed. # s%^\([ ]*#[ ]*endif[ ]*\)\([^/ ].*\)$%\1/* \2 */% # s%^\([ ]*#[ ]*else[ ]*\)\([^/ ].*\)$%\1/* \2 */% @@ -274,6 +275,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then mkdir ${LIB}/sundev 2>/dev/null cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -293,6 +295,7 @@ file=sys/stdtypes.h if [ -r $file ] && [ ! -r ${LIB}/$file ]; then cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -339,6 +342,7 @@ file=sys/types.h if [ -r $file ] && [ ! -r ${LIB}/$file ]; then cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -368,6 +372,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then mkdir ${LIB}/rpcsvc 2>/dev/null cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -386,6 +391,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then mkdir ${LIB}/rpcsvc 2>/dev/null cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -407,6 +413,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then mkdir ${LIB}/netdnet 2>/dev/null cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -426,6 +433,7 @@ file=sys/file.h if [ -r $file ] && [ ! -r ${LIB}/$file ]; then cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -447,6 +455,7 @@ fi #if [ -r $file ] && [ ! -r ${LIB}/$file ]; then # cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" # chmod +w ${LIB}/$file 2>/dev/null +# chmod a+r ${LIB}/$file 2>/dev/null #fi # #if [ -r ${LIB}/$file ]; then @@ -465,6 +474,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then mkdir ${LIB}/machine 2>/dev/null cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -492,6 +502,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then mkdir ${LIB}/X11 2>/dev/null cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -517,6 +528,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then mkdir ${LIB}/X11/Xmu 2>/dev/null cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -541,6 +553,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then mkdir ${LIB}/netinet 2>/dev/null cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -559,6 +572,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then mkdir ${LIB}/pixrect 2>/dev/null cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -583,6 +597,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then mkdir ${LIB}/rpcsvc 2>/dev/null cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -600,6 +615,7 @@ file=stdlib.h if [ -r $file ] && [ ! -r ${LIB}/$file ]; then cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -622,6 +638,7 @@ file=malloc.h if [ -r $file ] && [ ! -r ${LIB}/$file ]; then cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -642,6 +659,7 @@ file=locale.h if [ -r $file ] && [ ! -r ${LIB}/$file ]; then cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -660,6 +678,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then mkdir ${LIB}/hsfs 2>/dev/null cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -679,6 +698,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then mkdir ${LIB}/hsfs 2>/dev/null cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -698,6 +718,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then mkdir ${LIB}/hsfs 2>/dev/null cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -717,6 +738,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then mkdir ${LIB}/machine 2>/dev/null cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -736,6 +758,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then mkdir ${LIB}/sys 2>/dev/null cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -759,6 +782,7 @@ if egrep '/\* @\(#\)memory\.h 1\.[2-4] 8./../.. SMI; from S5R2 1\.2 \*/' $file > if [ -r $file ] && [ ! -r ${LIB}/$file ]; then cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then echo Replacing $file @@ -791,6 +815,7 @@ file=stdio.h if [ -r $file ] && [ ! -r ${LIB}/$file ]; then cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -816,6 +841,7 @@ file=stdio.h if [ -r $file ] && [ ! -r ${LIB}/$file ]; then cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then @@ -853,6 +879,7 @@ file=math.h if [ -r $file ] && [ ! -r ${LIB}/$file ]; then cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null fi if [ -r ${LIB}/$file ]; then |