forked from LindseyLab-umich/chimes_calculator-LLfork
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall.sh
More file actions
executable file
·35 lines (25 loc) · 739 Bytes
/
uninstall.sh
File metadata and controls
executable file
·35 lines (25 loc) · 739 Bytes
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
#!/bin/bash
# Removes files/folders created during a CMake build
# Run with:
# ./uninstall.sh
# or
# ./uninstall.sh <install prefix (full path)>
PREFX=${1-""} # Empty by default
if [ -e "cat build/install_manifest.txt" ] ; then
for i in `cat build/install_manifest.txt`
do
echo "Removing installed file $i"
rm -f $i
done
fi
rm -rf chimesFF/api/__pycache__/ chimesFF/api/wrapper_py.pyc
rm -rf serial_interface/api/__pycache__/chimescalc_serial_py.cpython-37.pyc
echo "Removing directory build"
rm -rf build
if [ ! -z $PREFX ] ; then
echo "Removing files installed at $PREFX"
echo "This runs the command \"rm -rf $PREFX\""
echo "Are you sure you want to proceed?"
read -p "Press enter to continue"
rm -rf $PREFX
fi