Commit 2e4cd151 by Richard Stallman

Chmod each copied file a+r.

From-SVN: r2988
parent 12342f90
...@@ -145,6 +145,7 @@ while [ $# != 0 ]; do ...@@ -145,6 +145,7 @@ while [ $# != 0 ]; do
if [ -r $file ]; then if [ -r $file ]; then
cp $file $2/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file $2/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w $2/$file chmod +w $2/$file
chmod a+r $2/$file
# The following have been removed from the sed command below # The following have been removed from the sed command below
# because it is more useful to leave these things in. # because it is more useful to leave these things in.
...@@ -218,6 +219,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -218,6 +219,7 @@ if [ \! -z "$file_to_fix" ]; then
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
fi fi
rm -f /tmp/$base rm -f /tmp/$base
fi fi
...@@ -246,6 +248,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -246,6 +248,7 @@ if [ \! -z "$file_to_fix" ]; then
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
fi fi
rm -f /tmp/$base rm -f /tmp/$base
fi fi
...@@ -268,6 +271,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -268,6 +271,7 @@ if [ \! -z "$file_to_fix" ]; then
echo Checking $file_to_fix echo Checking $file_to_fix
cp $file_to_fix /tmp/$base cp $file_to_fix /tmp/$base
chmod +w /tmp/$base chmod +w /tmp/$base
chmod a+r /tmp/$base
ex /tmp/$base <<EOF ex /tmp/$base <<EOF
/^#define[ ]*NULL[ ]*0$/c /^#define[ ]*NULL[ ]*0$/c
#ifndef NULL #ifndef NULL
...@@ -287,6 +291,7 @@ EOF ...@@ -287,6 +291,7 @@ EOF
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
fi fi
rm -f /tmp/$base rm -f /tmp/$base
fi fi
...@@ -326,6 +331,7 @@ EOF ...@@ -326,6 +331,7 @@ EOF
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
fi fi
rm -f /tmp/$base rm -f /tmp/$base
fi fi
...@@ -367,6 +373,7 @@ EOF ...@@ -367,6 +373,7 @@ EOF
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
fi fi
rm -f /tmp/$base rm -f /tmp/$base
fi fi
...@@ -405,6 +412,7 @@ EOF ...@@ -405,6 +412,7 @@ EOF
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
fi fi
rm -f /tmp/$base rm -f /tmp/$base
fi fi
...@@ -465,6 +473,7 @@ EOF ...@@ -465,6 +473,7 @@ EOF
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
fi fi
rm -f /tmp/$base rm -f /tmp/$base
fi fi
...@@ -507,6 +516,7 @@ EOF ...@@ -507,6 +516,7 @@ EOF
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
fi fi
fi fi
rm -f /tmp/$base rm -f /tmp/$base
...@@ -541,6 +551,7 @@ EOF ...@@ -541,6 +551,7 @@ EOF
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
fi fi
rm -f /tmp/$base rm -f /tmp/$base
fi fi
...@@ -577,6 +588,7 @@ EOF ...@@ -577,6 +588,7 @@ EOF
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
fi fi
rm -f /tmp/$base rm -f /tmp/$base
fi fi
...@@ -625,6 +637,7 @@ EOF ...@@ -625,6 +637,7 @@ EOF
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
fi fi
rm -f /tmp/$base rm -f /tmp/$base
fi fi
...@@ -651,6 +664,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -651,6 +664,7 @@ if [ \! -z "$file_to_fix" ]; then
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
fi fi
rm -f /tmp/$base rm -f /tmp/$base
fi fi
...@@ -679,6 +693,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -679,6 +693,7 @@ if [ \! -z "$file_to_fix" ]; then
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
fi fi
rm -f /tmp/$base rm -f /tmp/$base
fi fi
...@@ -707,6 +722,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -707,6 +722,7 @@ if [ \! -z "$file_to_fix" ]; then
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
rm -f /tmp/$base rm -f /tmp/$base
fi fi
fi fi
...@@ -735,6 +751,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -735,6 +751,7 @@ if [ \! -z "$file_to_fix" ]; then
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
rm -f /tmp/$base rm -f /tmp/$base
fi fi
fi fi
...@@ -763,6 +780,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -763,6 +780,7 @@ if [ \! -z "$file_to_fix" ]; then
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
rm -f /tmp/$base rm -f /tmp/$base
fi fi
fi fi
...@@ -791,6 +809,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -791,6 +809,7 @@ if [ \! -z "$file_to_fix" ]; then
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
rm -f /tmp/$base rm -f /tmp/$base
fi fi
fi fi
...@@ -819,6 +838,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -819,6 +838,7 @@ if [ \! -z "$file_to_fix" ]; then
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
rm -f /tmp/$base rm -f /tmp/$base
fi fi
fi fi
...@@ -847,6 +867,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -847,6 +867,7 @@ if [ \! -z "$file_to_fix" ]; then
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
rm -f /tmp/$base rm -f /tmp/$base
fi fi
fi fi
...@@ -875,6 +896,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -875,6 +896,7 @@ if [ \! -z "$file_to_fix" ]; then
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
rm -f /tmp/$base rm -f /tmp/$base
fi fi
fi fi
...@@ -903,6 +925,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -903,6 +925,7 @@ if [ \! -z "$file_to_fix" ]; then
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
rm -f /tmp/$base rm -f /tmp/$base
fi fi
fi fi
...@@ -1016,6 +1039,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -1016,6 +1039,7 @@ if [ \! -z "$file_to_fix" ]; then
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
fi fi
rm -f /tmp/$base rm -f /tmp/$base
fi fi
...@@ -1045,6 +1069,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -1045,6 +1069,7 @@ if [ \! -z "$file_to_fix" ]; then
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
fi fi
rm -f /tmp/$base rm -f /tmp/$base
fi fi
...@@ -1103,6 +1128,7 @@ EOF ...@@ -1103,6 +1128,7 @@ EOF
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
rm -f /tmp/$base rm -f /tmp/$base
fi fi
...@@ -1140,6 +1166,7 @@ if [ -x /bin/sony ]; then ...@@ -1140,6 +1166,7 @@ if [ -x /bin/sony ]; then
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
fi fi
rm -f /tmp/$base rm -f /tmp/$base
fi fi
...@@ -1171,6 +1198,7 @@ if [ -x /bin/sony ]; then ...@@ -1171,6 +1198,7 @@ if [ -x /bin/sony ]; then
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
fi fi
rm -f /tmp/$base rm -f /tmp/$base
fi fi
...@@ -1224,6 +1252,7 @@ if [ \! -z "$file_to_fix" ]; then ...@@ -1224,6 +1252,7 @@ if [ \! -z "$file_to_fix" ]; then
echo Fixed $file_to_fix echo Fixed $file_to_fix
rm -f ${LIB}/$file rm -f ${LIB}/$file
cp /tmp/$base ${LIB}/$file cp /tmp/$base ${LIB}/$file
chmod a+r ${LIB}/$file
fi fi
rm -f /tmp/$base rm -f /tmp/$base
fi fi
......
...@@ -224,6 +224,7 @@ while [ $# != 0 ]; do ...@@ -224,6 +224,7 @@ while [ $# != 0 ]; do
cp $file $2/$file >/dev/null 2>&1 \ cp $file $2/$file >/dev/null 2>&1 \
|| echo "Can't copy $file" || echo "Can't copy $file"
chmod +w $2/$file chmod +w $2/$file
chmod a+r $2/$file
# Following two lines removed. # Following two lines removed.
# s%^\([ ]*#[ ]*endif[ ]*\)\([^/ ].*\)$%\1/* \2 */% # s%^\([ ]*#[ ]*endif[ ]*\)\([^/ ].*\)$%\1/* \2 */%
# s%^\([ ]*#[ ]*else[ ]*\)\([^/ ].*\)$%\1/* \2 */% # s%^\([ ]*#[ ]*else[ ]*\)\([^/ ].*\)$%\1/* \2 */%
...@@ -274,6 +275,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then ...@@ -274,6 +275,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
mkdir ${LIB}/sundev 2>/dev/null mkdir ${LIB}/sundev 2>/dev/null
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -293,6 +295,7 @@ file=sys/stdtypes.h ...@@ -293,6 +295,7 @@ file=sys/stdtypes.h
if [ -r $file ] && [ ! -r ${LIB}/$file ]; then if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -339,6 +342,7 @@ file=sys/types.h ...@@ -339,6 +342,7 @@ file=sys/types.h
if [ -r $file ] && [ ! -r ${LIB}/$file ]; then if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -368,6 +372,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then ...@@ -368,6 +372,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
mkdir ${LIB}/rpcsvc 2>/dev/null mkdir ${LIB}/rpcsvc 2>/dev/null
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -386,6 +391,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then ...@@ -386,6 +391,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
mkdir ${LIB}/rpcsvc 2>/dev/null mkdir ${LIB}/rpcsvc 2>/dev/null
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -407,6 +413,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then ...@@ -407,6 +413,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
mkdir ${LIB}/netdnet 2>/dev/null mkdir ${LIB}/netdnet 2>/dev/null
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -426,6 +433,7 @@ file=sys/file.h ...@@ -426,6 +433,7 @@ file=sys/file.h
if [ -r $file ] && [ ! -r ${LIB}/$file ]; then if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -447,6 +455,7 @@ fi ...@@ -447,6 +455,7 @@ fi
#if [ -r $file ] && [ ! -r ${LIB}/$file ]; then #if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
# cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" # cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
# chmod +w ${LIB}/$file 2>/dev/null # chmod +w ${LIB}/$file 2>/dev/null
# chmod a+r ${LIB}/$file 2>/dev/null
#fi #fi
# #
#if [ -r ${LIB}/$file ]; then #if [ -r ${LIB}/$file ]; then
...@@ -465,6 +474,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then ...@@ -465,6 +474,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
mkdir ${LIB}/machine 2>/dev/null mkdir ${LIB}/machine 2>/dev/null
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -492,6 +502,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then ...@@ -492,6 +502,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
mkdir ${LIB}/X11 2>/dev/null mkdir ${LIB}/X11 2>/dev/null
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -517,6 +528,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then ...@@ -517,6 +528,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
mkdir ${LIB}/X11/Xmu 2>/dev/null mkdir ${LIB}/X11/Xmu 2>/dev/null
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -541,6 +553,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then ...@@ -541,6 +553,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
mkdir ${LIB}/netinet 2>/dev/null mkdir ${LIB}/netinet 2>/dev/null
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -559,6 +572,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then ...@@ -559,6 +572,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
mkdir ${LIB}/pixrect 2>/dev/null mkdir ${LIB}/pixrect 2>/dev/null
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -583,6 +597,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then ...@@ -583,6 +597,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
mkdir ${LIB}/rpcsvc 2>/dev/null mkdir ${LIB}/rpcsvc 2>/dev/null
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -600,6 +615,7 @@ file=stdlib.h ...@@ -600,6 +615,7 @@ file=stdlib.h
if [ -r $file ] && [ ! -r ${LIB}/$file ]; then if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -622,6 +638,7 @@ file=malloc.h ...@@ -622,6 +638,7 @@ file=malloc.h
if [ -r $file ] && [ ! -r ${LIB}/$file ]; then if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -642,6 +659,7 @@ file=locale.h ...@@ -642,6 +659,7 @@ file=locale.h
if [ -r $file ] && [ ! -r ${LIB}/$file ]; then if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -660,6 +678,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then ...@@ -660,6 +678,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
mkdir ${LIB}/hsfs 2>/dev/null mkdir ${LIB}/hsfs 2>/dev/null
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -679,6 +698,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then ...@@ -679,6 +698,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
mkdir ${LIB}/hsfs 2>/dev/null mkdir ${LIB}/hsfs 2>/dev/null
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -698,6 +718,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then ...@@ -698,6 +718,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
mkdir ${LIB}/hsfs 2>/dev/null mkdir ${LIB}/hsfs 2>/dev/null
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -717,6 +738,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then ...@@ -717,6 +738,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
mkdir ${LIB}/machine 2>/dev/null mkdir ${LIB}/machine 2>/dev/null
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -736,6 +758,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then ...@@ -736,6 +758,7 @@ if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
mkdir ${LIB}/sys 2>/dev/null mkdir ${LIB}/sys 2>/dev/null
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -759,6 +782,7 @@ if egrep '/\* @\(#\)memory\.h 1\.[2-4] 8./../.. SMI; from S5R2 1\.2 \*/' $file > ...@@ -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 if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
echo Replacing $file echo Replacing $file
...@@ -791,6 +815,7 @@ file=stdio.h ...@@ -791,6 +815,7 @@ file=stdio.h
if [ -r $file ] && [ ! -r ${LIB}/$file ]; then if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -816,6 +841,7 @@ file=stdio.h ...@@ -816,6 +841,7 @@ file=stdio.h
if [ -r $file ] && [ ! -r ${LIB}/$file ]; then if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
...@@ -853,6 +879,7 @@ file=math.h ...@@ -853,6 +879,7 @@ file=math.h
if [ -r $file ] && [ ! -r ${LIB}/$file ]; then if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file" cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null chmod +w ${LIB}/$file 2>/dev/null
chmod a+r ${LIB}/$file 2>/dev/null
fi fi
if [ -r ${LIB}/$file ]; then if [ -r ${LIB}/$file ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment