license-tool/install.sh

15 lines
263 B
Bash
Raw Normal View History

2022-10-06 22:34:56 -07:00
#!/bin/sh
PREFIX="/usr/local"
if [ "$#" -ge 1 ]; then
PREFIX="$1"
fi
export DATA_PATH="$PREFIX/share/license-tool"
cargo install --path . --root "$PREFIX"
printf "Installing licenses to '%s'\n" "$DATA_PATH"
rm -rf "$DATA_PATH"
cp -R licenses "$DATA_PATH"