license-tool/install.sh

15 lines
291 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 GLOBAL_DATA_PATH="$PREFIX/share/license-tool"
2022-10-06 22:34:56 -07:00
cargo install --path . --root "$PREFIX"
printf "Installing licenses to '%s'\n" "$GLOBAL_DATA_PATH"
rm -rf "$GLOBAL_DATA_PATH"
cp -R licenses "$GLOBAL_DATA_PATH"