aboutsummaryrefslogtreecommitdiff
path: root/compile/dpw.sh
blob: 83544469cd6e75d772db90fda5e1a1f097d0c57b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# Not so much compiling, but fetching and installing, since it's a shell script...
if [ "$(id -u)" -eq 0 ] ; then
	echo "Run as a regular user"
	exit 1
fi
set -ex
codedir="${CODEDIR:-$HOME/scm}"
dpwdir="${codedir}/dpw"
if ! [ -d "$dpwdir" ] ; then
	git clone https://git.riedstra.dev/mitch/dpw "$dpwdir"
fi
cd "$dpwdir"
mkdir -p "$HOME/.local/bin"
make PREFIX="$HOME/.local" install
cd -