From e223ea0a045f1e086e0780f7c1778a94bce92ad6 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Fri, 26 Dec 2025 11:55:21 -0500 Subject: Some tweaks and updates to dotfiles --- distro/_ubuntu_arm64_box86.sh | 2 +- distro/netbsd.sh | 5 +++-- distro/ubuntu.sh | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) (limited to 'distro') diff --git a/distro/_ubuntu_arm64_box86.sh b/distro/_ubuntu_arm64_box86.sh index 85f9bfa..d7633f9 100755 --- a/distro/_ubuntu_arm64_box86.sh +++ b/distro/_ubuntu_arm64_box86.sh @@ -3,7 +3,7 @@ set -ex # Automatically install box86/box64 on ARM64 SBCs # Largely based on: # https://github.com/ptitSeb/box86/blob/master/docs/COMPILE.md -codedir="$HOME/scm/pub" +codedir="${CODEDIR:-$HOME/scm/pub}" box86dir="$codedir/box86" box64dir="$codedir/box64" winedir="$HOME/wine" diff --git a/distro/netbsd.sh b/distro/netbsd.sh index 8abc573..31db68b 100755 --- a/distro/netbsd.sh +++ b/distro/netbsd.sh @@ -1,5 +1,6 @@ #!/bin/sh set -ex +codedir="${CODEDIR:-$HOME/scm}" if [ "$(id -u)" -eq 0 ] ; then @@ -46,8 +47,8 @@ cd "$HOME" for pkg in dwm st dmenu ; do - mkdir -p scm/x/$pkg - cd scm/x/$pkg + mkdir -p "$codedir"/$pkg + cd "$codedir"/$pkg ! [ -d .git ] && git clone -b netbsd https://git.riedstra.dev/x/$pkg . make diff --git a/distro/ubuntu.sh b/distro/ubuntu.sh index a5c3fdd..04910ca 100755 --- a/distro/ubuntu.sh +++ b/distro/ubuntu.sh @@ -4,7 +4,7 @@ if [ "$(id -u)" -eq 0 ] ; then exit 1 fi set -ex -codedir="$HOME/scm/pub" +codedir="${CODEDIR:-HOME/scm/pub}" nvimdir="${codedir}/neovim-nvim" okshdir="${codedir}/ibara-oksh" NVIM="${NVIM:-yes}" -- cgit v1.2.3