1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00

Merge of 23702: use chmod to change permissions since installing as a programme may try to strip the script.

This commit is contained in:
Paul Ackersviller 2007-11-20 03:47:38 +00:00
parent d7ba463048
commit df953dba22

View file

@ -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