16 lines
385 B
Bash
16 lines
385 B
Bash
#!/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 --system-site-packages
|
|
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
|