#!/usr/bin/env sh MYPATH=$(pwd) if [ $# -eq 0 ]; then echo "Parsing error: *** No options were passed." echo "Using: quick [ARGUMENT]" echo "" echo "Options:" echo " install install qpm." echo " uninstall uninstall qpm." exit 1 fi key="$1" case $key in help) echo "Using: quick [ARGUMENT]" echo "" echo "Options:" echo " install install qpm." echo " uninstall uninstall qpm." exit 0 ;; install) cargo build --release --verbose cargo install --path $MYPATH ;; uninstall) rm -rf $HOME/.qpm_storage cargo clean cargo uninstall ;; *) echo "Parsing error: *** Unknown option '$1'." echo "Using: quick [ARGUMENT]" echo "" echo "Options:" echo " install install qpm." echo " uninstall uninstall qpm." exit 1 ;; esac