-
Notifications
You must be signed in to change notification settings - Fork 0
/
undoProject
executable file
·49 lines (38 loc) · 1.05 KB
/
undoProject
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
38
39
40
41
42
43
44
45
46
47
48
49
#! /bin/bash
# will remove the cppProject command only if the items exist.
echo "You are about to delete files and directories. Do your wish to continue: y/n? "
read name
for isFound in "y" "Y" "Yes" "yes" "YES" ; do
if [ "$name" == "$isFound" ] ; then
if [ -d "./include" ] ; then
rm -rf ./include/
fi
if [ -d "./src" ] ; then
rm -rf ./src/
fi
if [ -d "./build" ] ; then
rm -rf ./build/
fi
if [ -d "./UnitTest++" ] ; then
rm -rf ./UnitTest++/
fi
if [ -f "./CMakeLists.txt" ] ; then
rm ./CMakeLists.txt
fi
if [ -f "./README.md" ] ; then
rm ./README.md
fi
if [ -e "./.git" ] ; then
rm -rf ./.git
fi
if [ -e "./.gitignore" ] ; then
rm -f ./.gitignore
fi
if [ -e"./googletest" ] ; then
rm -rf ./googletest/
fi
if [ -e" ./LICENSE.md" ] ; then
rm -f ./LICENSE.md
fi
fi
done