Added script to install the X backend automatically
This commit is contained in:
parent
69e73a7b84
commit
2e3af402d5
15
scripts/install-backends.sh
Normal file
15
scripts/install-backends.sh
Normal file
@ -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"
|
Reference in New Issue
Block a user