aboutsummaryrefslogtreecommitdiff
path: root/distro
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2025-12-26 11:55:21 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2025-12-26 11:55:21 -0500
commite223ea0a045f1e086e0780f7c1778a94bce92ad6 (patch)
tree39983b748e0c98e7a4c137ffffedea9c5df779d7 /distro
parent9cd1e4f16131c41f2b16637ced9fd184573a7102 (diff)
downloaddotfiles-e223ea0a045f1e086e0780f7c1778a94bce92ad6.tar.gz
dotfiles-e223ea0a045f1e086e0780f7c1778a94bce92ad6.tar.xz
Some tweaks and updates to dotfiles
Diffstat (limited to 'distro')
-rwxr-xr-xdistro/_ubuntu_arm64_box86.sh2
-rwxr-xr-xdistro/netbsd.sh5
-rwxr-xr-xdistro/ubuntu.sh2
3 files changed, 5 insertions, 4 deletions
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}"