#!/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"