2021-08-15 15:51:24 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-08-02 16:10:37 +00:00
|
|
|
|
|
|
|
function install () {
|
2021-08-15 15:51:24 +00:00
|
|
|
cd ~
|
2021-08-02 16:10:37 +00:00
|
|
|
git clone https://github.com/justinmeza/lci.git
|
|
|
|
cd lci
|
|
|
|
cmake .
|
2021-08-15 15:51:24 +00:00
|
|
|
sudo make
|
2021-08-02 16:10:37 +00:00
|
|
|
sudo make install
|
2021-08-15 15:51:24 +00:00
|
|
|
cd ~
|
|
|
|
sudo rm -rf lci
|
2021-08-02 16:10:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function uninstall () {
|
|
|
|
rm -rf /usr/local/bin/lci
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ "$1" == "install" ]; then
|
|
|
|
install
|
|
|
|
elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then
|
|
|
|
uninstall
|
|
|
|
else
|
|
|
|
echo "please specify args with install or uninstall"
|
|
|
|
fi
|