aboutsummaryrefslogtreecommitdiff
path: root/compile/pm.sh
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@t490.home.mitch.is>2026-01-06 17:58:28 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2026-01-06 17:58:43 -0500
commite2e926395580b8c9bc1d2625567e460dc94f34b0 (patch)
treebe5ebbfd182df446ceb934e555a1ef28bcf762da /compile/pm.sh
parent49a7a1537e963f0a828c6aed229935bfb12652a1 (diff)
downloaddotfiles-e2e926395580b8c9bc1d2625567e460dc94f34b0.tar.gz
dotfiles-e2e926395580b8c9bc1d2625567e460dc94f34b0.tar.xz
Update el9 script. Add PM compile script
Diffstat (limited to 'compile/pm.sh')
-rwxr-xr-xcompile/pm.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/compile/pm.sh b/compile/pm.sh
new file mode 100755
index 0000000..04f035d
--- /dev/null
+++ b/compile/pm.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+if [ "$(id -u)" -eq 0 ] ; then
+ echo "Run as a regular user"
+ exit 1
+fi
+set -ex
+codedir="${CODEDIR:-$HOME/scm}"
+pmdir="${codedir}/pm"
+if ! [ -d "$pmdir" ] ; then
+ git clone https://git.riedstra.dev/mitch/pm "$pmdir"
+fi
+cd "$pmdir"
+make PREFIX="$HOME/.local" install
+cd -