aboutsummaryrefslogtreecommitdiff
path: root/bldSession.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bldSession.sh')
-rwxr-xr-xbldSession.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/bldSession.sh b/bldSession.sh
index e30f171..24213c6 100755
--- a/bldSession.sh
+++ b/bldSession.sh
@@ -1,11 +1,12 @@
#!/bin/sh
set -ex
-codedir="$HOME/scm/wl/wlcustom"
+codedir="${CODEDIR:-$HOME/scm}"
+wlcustomdir="$codedir/wlcustom"
-if ! [ -d "$codedir" ] ; then
- mkdir -p "$(basename "$codedir")"
- git clone https://git.riedstra.dev/wl/wlcustom/ "$codedir"
+if ! [ -d "$wlcustomdir" ] ; then
+ mkdir -p "$(basename "$wlcustomdir")"
+ git clone https://git.riedstra.dev/wl/wlcustom/ "$wlcustomdir"
fi
-cd "$codedir"
+cd "$wlcustomdir"
sudo make install