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"