Commit fef01b21 by Bruce Korb Committed by Bruce Korb

Makesure the result shell script is writable

From-SVN: r26689
parent bc639f90
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> 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 * config/m68k/m68k.md (cmpsi+1): Use cmp.w when comparing a 16 bit
......
...@@ -109,6 +109,7 @@ esac ...@@ -109,6 +109,7 @@ esac
if test -z "$fixincludes" if test -z "$fixincludes"
then then
(echo "#! /bin/sh" ; echo "exit 0" ) > ${target} (echo "#! /bin/sh" ; echo "exit 0" ) > ${target}
chmod 755 ${target}
exit 0 exit 0
fi fi
...@@ -119,6 +120,7 @@ if test -f ${srcdir}/"${fixincludes}" ...@@ -119,6 +120,7 @@ if test -f ${srcdir}/"${fixincludes}"
then then
echo copying ${srcdir}/$fixincludes to ${target} echo copying ${srcdir}/$fixincludes to ${target}
cp ${srcdir}/$fixincludes ${target} cp ${srcdir}/$fixincludes ${target}
chmod 755 ${target}
exit 0 exit 0
fi fi
...@@ -128,7 +130,7 @@ echo $MAKE SHELL=\"$SHELL\" install ...@@ -128,7 +130,7 @@ echo $MAKE SHELL=\"$SHELL\" install
# make and install either the binary or the default script # 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 # Where is our inclhack script? That is the backup
# in case we are unable to make a working binary. # in case we are unable to make a working binary.
...@@ -144,3 +146,4 @@ echo Could not install binary fixincludes. ...@@ -144,3 +146,4 @@ echo Could not install binary fixincludes.
echo Installing shell script instead. echo Installing shell script instead.
cp ${INCLHACK} ${target} cp ${INCLHACK} ${target}
chmod 755 ${target}
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