aboutsummaryrefslogtreecommitdiff
path: root/compile/pm.sh
blob: 04f035d8e2d1aa7b30febc3315baff80dcd6f713 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
if [ "$(id -u)" -eq 0 ] ; then
	echo "Run as a regular user"
	exit 1
fi
set -ex
codedir="${CODEDIR:-$HOME/scm}"
pmdir="${codedir}/pm"
if ! [ -d "$pmdir" ] ; then
	git clone https://git.riedstra.dev/mitch/pm "$pmdir"
fi
cd "$pmdir"
make PREFIX="$HOME/.local" install
cd -