From df953dba221ea411b6b82d7e95f416b6001397bb Mon Sep 17 00:00:00 2001 From: Paul Ackersviller Date: Tue, 20 Nov 2007 03:47:38 +0000 Subject: Merge of 23702: use chmod to change permissions since installing as a programme may try to strip the script. --- Config/installfns.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Config/installfns.sh') diff --git a/Config/installfns.sh b/Config/installfns.sh index e6faf3d2b..bad57c371 100755 --- a/Config/installfns.sh +++ b/Config/installfns.sh @@ -34,10 +34,9 @@ for file in $allfuncs; do instdir="$fndir" fi test -d $instdir || /bin/sh $sdir_top/mkinstalldirs $instdir || exit 1 + $INSTALL_DATA $sdir_top/$file $instdir || exit 1 if test -x $sdir_top/$file; then - $INSTALL_PROGRAM $sdir_top/$file $instdir || exit 1 - else - $INSTALL_DATA $sdir_top/$file $instdir || exit 1 + chmod +x $instdir/`echo $file | sed -e 's%^.*/%%'` fi fi done -- cgit 1.4.1