aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2024-12-25 14:15:28 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2024-12-25 14:15:28 -0500
commitbccc1e5ae58a9ca83bf7ad689f8970e9a3db2a1d (patch)
tree91396692dc37e18d7a232c35b1833aee6f786b32
parent8ee1226209ea0eaf80b87756df40ebf74dceef32 (diff)
downloaddotfiles-bccc1e5ae58a9ca83bf7ad689f8970e9a3db2a1d.tar.gz
dotfiles-bccc1e5ae58a9ca83bf7ad689f8970e9a3db2a1d.tar.xz
Add oksh to ubuntu script
-rwxr-xr-xdistro/ubuntu.sh18
1 files changed, 17 insertions, 1 deletions
diff --git a/distro/ubuntu.sh b/distro/ubuntu.sh
index 29ad121..a5c3fdd 100755
--- a/distro/ubuntu.sh
+++ b/distro/ubuntu.sh
@@ -4,8 +4,11 @@ if [ "$(id -u)" -eq 0 ] ; then
exit 1
fi
set -ex
-nvimdir="$HOME/scm/pub/neovim-nvim"
+codedir="$HOME/scm/pub"
+nvimdir="${codedir}/neovim-nvim"
+okshdir="${codedir}/ibara-oksh"
NVIM="${NVIM:-yes}"
+OKSH="${OKSH:-yes}"
sudo apt update
@@ -58,12 +61,25 @@ if [ "$NVIM" = yes ] ; then
git clone https://github.com/neovim/neovim "$nvimdir"
fi
cd "$nvimdir"
+ git checkout v0.10.3
rm -rf build || echo ""
make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/.local" -j"$(nproc)"
make install
cd -
fi
+if [ "$OKSH" = yes ] ; then
+ if ! [ -d "$okshdir" ] ; then
+ git clone https://github.com/ibara/oksh "$okshdir"
+ fi
+ cd "$okshdir"
+ git checkout oksh-7.6
+ ./configure
+ make
+ sudo make install
+ cd -
+fi
+
case "$(uname -m)" in
x86_64)
# https://brave.com/linux/