wip
This commit is contained in:
parent
27dcf07ff3
commit
6ef963f06e
1 changed files with 13 additions and 18 deletions
31
neovim.sh
31
neovim.sh
|
@ -42,11 +42,11 @@
|
||||||
local depsAlpine=(build-base cmake coreutils curl gettext-tiny-dev)
|
local depsAlpine=(build-base cmake coreutils curl gettext-tiny-dev)
|
||||||
|
|
||||||
case "$distro" in
|
case "$distro" in
|
||||||
debian) checkAndInstall "${depsDebian[@]}" ;;
|
debian) run checkAndInstall "${depsDebian[@]}" ;;
|
||||||
fedora) checkAndInstall "${depsFedora[@]}" ;;
|
fedora) run checkAndInstall "${depsFedora[@]}" ;;
|
||||||
opensuse) checkAndInstall "${depsOpensuse[@]}" ;;
|
opensuse) run checkAndInstall "${depsOpensuse[@]}" ;;
|
||||||
arch) checkAndInstall "${depsArch[@]}" ;;
|
arch) run checkAndInstall "${depsArch[@]}" ;;
|
||||||
alpine) checkAndInstall "${alpine[@]}" ;;
|
alpine) run checkAndInstall "${alpine[@]}" ;;
|
||||||
*)
|
*)
|
||||||
echo_error "Cannot install for $distro"
|
echo_error "Cannot install for $distro"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
cd $cloneDir || mkdir $cloneDir && cd $cloneDir
|
cd $cloneDir || mkdir $cloneDir && cd $cloneDir
|
||||||
|
|
||||||
if command_exists git; then
|
if command_exists git; then
|
||||||
if git clone --depth=1 https://github.com/neovim/neovim.git; then
|
if run git clone --depth=1 https://github.com/neovim/neovim.git; then
|
||||||
cd neovim || echo_error "Cannot navigate into neovim"
|
cd neovim || echo_error "Cannot navigate into neovim"
|
||||||
else
|
else
|
||||||
echo_error "Cannot clone the repo.."
|
echo_error "Cannot clone the repo.."
|
||||||
|
@ -71,7 +71,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
makeInstall() {
|
makeInstall() {
|
||||||
if make CMAKE_BUILD_TYPE=RelWithDebInfo; then
|
if run make CMAKE_BUILD_TYPE=RelWithDebInfo; then
|
||||||
$_sudo make install
|
$_sudo make install
|
||||||
else
|
else
|
||||||
echo_error "Failure while building!"
|
echo_error "Failure while building!"
|
||||||
|
@ -82,20 +82,15 @@
|
||||||
if getImports; then
|
if getImports; then
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--silent | -s)
|
--silent | -s)
|
||||||
echo_info "Updating sources and installing base dependencies.."
|
silent=true
|
||||||
silentexec installBuildDependencies
|
|
||||||
|
|
||||||
echo_info "Cloning neovim sources.."
|
|
||||||
silentexec cloneSources
|
|
||||||
|
|
||||||
echo_info "Building neovim.."
|
|
||||||
silentexec makeInstall
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
installBuildDependencies
|
silent=false
|
||||||
cloneSources
|
|
||||||
makeInstall
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
installBuildDependencies
|
||||||
|
cloneSources
|
||||||
|
makeInstall
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue