forked from simulationcraft/simc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall
executable file
·37 lines (26 loc) · 1.09 KB
/
uninstall
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
37
#! /bin/sh
# ==========================================================================
# Dedmonwakeen's Raid DPS/TPS Simulator.
# Send questions to natehieter@gmail.com
# ==========================================================================
echo SimulationCraft uninstall script
# Get $PREFIX, otherwise set it to '~'
if [ -z "$PREFIX" ]; then PREFIX=~; fi
# Get $INSTALLPATH, otherwise set it to '$PREFIX/SimulationCraft'
if [ -z "$INSTALLPATH" ]; then INSTALLPATH=$PREFIX/SimulationCraft; fi
echo INSTALLPATH=$INSTALLPATH
echo Calling configuration script
./configure INSTALLPATH=$INSTALLPATH
echo Uninstalling SimulationCraft CLI from $INSTALLPATH
rm $INSTALLPATH/simc
echo Uninstalling SimulationCraft GUI from $INSTALLPATH
make uninstall
echo Removing Cache and History files from $INSTALLPATH
rm $INSTALLPATH/chardev.cookies
rm $INSTALLPATH/simc_cache.dat
rm $INSTALLPATH/simc_history.dat
echo Trying to remove SimulationCraft folder
rm $INSTALLPATH
echo Removing Desktop file from ~/.local/share/applications
rm ~/.local/share/applications/SimulationCraft.desktop
echo Uninstallation finished.