summaryrefslogtreecommitdiff
path: root/scripts/sh/update
blob: 5eda0ddd15a2e3844f581b78b732a8b78ec43641 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# Updates all executables (i.e. all scripts and binaries here) to be in
# PATH. Upon this script being run, all executables should be able to be found.
# Executables are symlinked to $HOME/.local/bin.

[ -z "$NEODOT_SCR" ] && echo "NEODOT_SCR not set" && exit
[ -z "$NEODOT_SH" ] && echo "NEODOT_SH not set" && exit
# todo: add $NEODOT_C envvar.

mkdir -p "$HOME/.local/bin"

# Update all in sh
find $NEODOT_SH -type f -exec sh -c 'ln -sf "{}" $HOME/.local/bin/$(basename {})' \;

# Build all executables
odin build $NEODOT_SCR/jezup -out:$NEODOT_SCR/target/jezup
odin build $NEODOT_SCR/dexter -out:$NEODOT_SCR/target/dexter