Makesure the result shell script is writable
authorBruce Korb <ddsinc09@ix.netcom.com>
Wed, 28 Apr 1999 14:42:03 +0000 (14:42 +0000)
committerBruce Korb <korbb@gcc.gnu.org>
Wed, 28 Apr 1999 14:42:03 +0000 (14:42 +0000)
From-SVN: r26689

gcc/ChangeLog
gcc/fixinc/mkfixinc.sh

index 9bbb9d4ee0bd9dbbc676d4c4aac056904e099db7..2c9c9424a6d7abde38a90511f2c43ee69da05dd5 100644 (file)
@@ -1,3 +1,7 @@
+1999-04-28 14:40 Bruce Korb <ddsinc09@ix.netcom.com>
+
+       * fixinc/mkfixinc.sh: Makesure the result shell script is writable
+
 Wed Apr 28 10:36:39 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
 
        * config/m68k/m68k.md (cmpsi+1): Use cmp.w when comparing a 16 bit
index cdb9783791fd54a674e335257db88941c9ed207e..aaba3020c80b1f437bf8dd2cb6173ed5d5b2c541 100755 (executable)
@@ -109,6 +109,7 @@ esac
 if test -z "$fixincludes"
 then
     (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
+    chmod 755 ${target}
     exit 0
 fi
 
@@ -119,6 +120,7 @@ if test -f ${srcdir}/"${fixincludes}"
 then
     echo copying ${srcdir}/$fixincludes to ${target}
     cp ${srcdir}/$fixincludes ${target}
+    chmod 755 ${target}
     exit 0
 fi
 
@@ -128,7 +130,7 @@ echo $MAKE SHELL=\"$SHELL\" install
 
 #  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 Could not install binary fixincludes.
 echo Installing shell script instead.
 
 cp ${INCLHACK} ${target}
+chmod 755 ${target}