mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
sudo is needed in non-windows system
This commit is contained in:
parent
d9a423370a
commit
b39c84ec86
20
install.sh
20
install.sh
@ -41,13 +41,19 @@ done
|
|||||||
echo "Installing to ${prefix} ..."
|
echo "Installing to ${prefix} ..."
|
||||||
|
|
||||||
# INSTALL AUTOJUMP
|
# INSTALL AUTOJUMP
|
||||||
mkdir -p ${prefix}/share/autojump/
|
SUDO="sudo"
|
||||||
mkdir -p ${prefix}/bin/
|
case "${OSTYPE}" in
|
||||||
mkdir -p ${prefix}/share/man/man1/
|
*cygwin*|*msys*)
|
||||||
cp icon.png ${prefix}/share/autojump/
|
SUDO="";;
|
||||||
cp jumpapplet ${prefix}/bin/
|
*);;
|
||||||
cp autojump ${prefix}/bin/
|
esac
|
||||||
cp autojump.1 ${prefix}/share/man/man1/
|
$SUDO mkdir -p ${prefix}/share/autojump/
|
||||||
|
$SUDO mkdir -p ${prefix}/bin/
|
||||||
|
$SUDO mkdir -p ${prefix}/share/man/man1/
|
||||||
|
$SUDO cp icon.png ${prefix}/share/autojump/
|
||||||
|
$SUDO cp jumpapplet ${prefix}/bin/
|
||||||
|
$SUDO cp autojump ${prefix}/bin/
|
||||||
|
$SUDO cp autojump.1 ${prefix}/share/man/man1/
|
||||||
|
|
||||||
if [ -d "/etc/profile.d" ]; then
|
if [ -d "/etc/profile.d" ]; then
|
||||||
cp autojump.bash /etc/profile.d/
|
cp autojump.bash /etc/profile.d/
|
||||||
|
Loading…
Reference in New Issue
Block a user