No longer always installing as an executable file by default
This commit is contained in:
parent
bb43891070
commit
02aa787eab
@ -21,7 +21,7 @@ PREFIX="/usr/local"
|
|||||||
CHMOD="chmod"
|
CHMOD="chmod"
|
||||||
DEBUG="_debug"
|
DEBUG="_debug"
|
||||||
DEVNULL="/dev/null"
|
DEVNULL="/dev/null"
|
||||||
INSTALL="install -m 0755"
|
INSTALL="install"
|
||||||
MKDIR="mkdir -m 0755 -p"
|
MKDIR="mkdir -m 0755 -p"
|
||||||
RM="rm -f"
|
RM="rm -f"
|
||||||
SED="sed"
|
SED="sed"
|
||||||
@ -86,7 +86,10 @@ while [ $# -gt 0 ]; do
|
|||||||
#install
|
#install
|
||||||
if [ "$install" -eq 1 ]; then
|
if [ "$install" -eq 1 ]; then
|
||||||
$DEBUG $MKDIR -- "$BINDIR" || exit 2
|
$DEBUG $MKDIR -- "$BINDIR" || exit 2
|
||||||
$DEBUG $INSTALL "$target" "$BINDIR/$target" || exit 2
|
mode="-m 0644"
|
||||||
|
[ -x "$target.in" ] && mode="-m 0755"
|
||||||
|
$DEBUG $INSTALL $mode "$target" "$BINDIR/$target" \
|
||||||
|
|| exit 2
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user