From 2e3af402d54e224b92643eb5555816f6fee5586c Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Tue, 2 May 2023 22:25:54 -0400 Subject: [PATCH] Added script to install the X backend automatically --- scripts/install-backends.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 scripts/install-backends.sh diff --git a/scripts/install-backends.sh b/scripts/install-backends.sh new file mode 100644 index 0000000..00d2187 --- /dev/null +++ b/scripts/install-backends.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +pluginInstallPath="$HOME/.local/lib/nasin/plugins" + +mkdir -p build +mkdir -p "$pluginInstallPath" + +install() { + go build -buildmode=plugin -o "build/$1.so" "./plugins/$1" && \ + cp build/x.so $pluginInstallPath +} + +echo "... installing X backend" +install x +echo ".// done"