This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] gcc/fixinc.sh update failure


Reply-To: ddsinc09@ix.netcom.com


After an update, sometimes the fixinc.sh script needs to
be updated too.  It is therefore convenient for it to
be writable.  :-}

Index: mkfixinc.sh
===================================================================
RCS file: /cvs/egcs/egcs/gcc/fixinc/mkfixinc.sh,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- mkfixinc.sh 1999/04/13 22:02:18     1.11
+++ mkfixinc.sh 1999/04/28 14:40:15     1.12
@@ -109,6 +109,7 @@
 if test -z "$fixincludes"
 then
     (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
+    chmod 755 ${target}
     exit 0
 fi
 
@@ -119,6 +120,7 @@
 then
     echo copying ${srcdir}/$fixincludes to ${target}
     cp ${srcdir}/$fixincludes ${target}
+    chmod 755 ${target}
     exit 0
 fi
 
@@ -128,7 +130,7 @@
 
 #  make and install either the binary or the default script
 #
-$MAKE SHELL="$SHELL" install && exit 0
+$MAKE SHELL="$SHELL" install && chmod 755 ${target} && exit 0
 
 #  Where is our inclhack script?  That is the backup
 #  in case we are unable to make a working binary.
@@ -144,3 +146,4 @@
 echo Installing shell script instead.
 
 cp ${INCLHACK} ${target}
+chmod 755 ${target}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]