diff --git a/hbd/install.sh b/hbd/install.sh deleted file mode 100644 index c86adf1..0000000 --- a/hbd/install.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -# install hbd/hbc from wheel and create symlinks for hbd and hbc in /usr/local/bin - -set -e -pip install --upgrade --force-reinstall --no-deps --find-links https://github.com/andreas-h/heartbeat/releases/latest/download/ heartbeat-hbd \ No newline at end of file diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..0a9139b --- /dev/null +++ b/install.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +# install hbd/hbc from wheel and create symlinks for hbd and hbc in ~/bin + +set -e +if [ ! -d ~/venvs/hbd ]; then + mkdir -p ~/venvs + python3 -m venv ~/venvs/hbd +fi +. ~/venvs/hbd/bin/activate +pip install 'git+ssh://git@git.wrede.ca/andreas/heartbeat.git' +rm -f ~/bin/hbd +rm -f ~/bin/hbc +ln -sf $(which hbd) ~/bin/hbd +ln -sf $(which hbc) ~/bin/hbc