forked from alus-it/AirspaceConverter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall.sh
executable file
·36 lines (30 loc) · 1002 Bytes
/
uninstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
#============================================================================
# AirspaceConverter
# Since : 9/12/2017
# Author : Alberto Realis-Luc <[email protected]>
# Web : https://www.alus.it/AirspaceConverter
# Copyright : (C) 2016-2024 Alberto Realis-Luc
# License : GNU GPL v3
#
# This script is part of AirspaceConverter project
#============================================================================
if [ "$(uname)" == "Darwin" ]; then
echo "Uninstalling everything from macOS ..."
# Uninstall GUI
cd macOS
./uninstall.sh
cd ..
# Uninstall shared library and CLI
make uninstall
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
echo "Uninstalling everything from Linux ..."
# Uninstall GUI
sudo rm -f /usr/bin/airspaceconverter-gui
# Uninstall shared library and CLI
sudo make uninstall
else
echo "ERROR: this script is only for Linux or macOS ..."
exit 1
fi
echo "AirspaceConverter full uninstallation done."