#!/bin/sh
set -ex
codedir="${CODEDIR:-$HOME/scm}"
wlcustomdir="$codedir/wlcustom"
if ! [ -d "$wlcustomdir" ] ; then
mkdir -p "$(basename "$wlcustomdir")"
git clone https://git.riedstra.dev/wl/wlcustom/ "$wlcustomdir"
fi
cd "$wlcustomdir"
sudo make install