diff options
Diffstat (limited to 'compile/dpw.sh')
| -rwxr-xr-x | compile/dpw.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/compile/dpw.sh b/compile/dpw.sh new file mode 100755 index 0000000..4509c81 --- /dev/null +++ b/compile/dpw.sh @@ -0,0 +1,15 @@ +#!/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" +make PREFIX="$HOME/.local" install +cd - |
