1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-11 13:01:28 +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" instdir="$fndir"
fi fi
test -d $instdir || /bin/sh $sdir_top/mkinstalldirs $instdir || exit 1 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 if test -x $sdir_top/$file; then
$INSTALL_PROGRAM $sdir_top/$file $instdir || exit 1 chmod +x $instdir/`echo $file | sed -e 's%^.*/%%'`
else
$INSTALL_DATA $sdir_top/$file $instdir || exit 1
fi fi
fi fi
done done