From bccc1e5ae58a9ca83bf7ad689f8970e9a3db2a1d Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Wed, 25 Dec 2024 14:15:28 -0500 Subject: Add oksh to ubuntu script --- distro/ubuntu.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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/ -- cgit v1.2.3