aboutsummaryrefslogtreecommitdiff
path: root/compile/age-plugin-se.sh
blob: a3b54a0f4af9abb3106016c37335504c040aaf0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# Plugin required to send to SE keys...
# On Fedora...
# sudo dnf install swift-lang
if [ "$(id -u)" -eq 0 ] ; then
	echo "Run as a regular user"
	exit 1
fi
set -ex
codedir="${CODEDIR:-$HOME/scm}"
prefix="${PREFIX:-$HOME/.local}"
plugindir="${codedir}/age-plugin-se"
if ! [ -d "$plugindir" ] ; then
	git clone https://github.com/remko/age-plugin-se "$plugindir"
fi
cd "$plugindir"
make
make PREFIX="$prefix" install
cd -