-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathProductivity
74 lines (69 loc) · 1.59 KB
/
Productivity
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/usr/bin/env bash
usage() {
echo
echo "Sudo Productivity - A Productivity Suite Made For Slackers!"
echo
echo "./Productivity [-abcfhns]"
echo
echo "Flags:"
echo "-a - Automated Testing System"
echo "-b - Bitbake"
echo "-c - Code Review"
echo "-f - Fake Compilation"
echo "-h - Help Manual"
echo "-n - Neural Network"
echo "-s - Searching Random Hex Values"
echo
}
while getopts ":abcfhns" opt; do
if [ $OPTIND -eq 1 -o $OPTIND -gt 2 ]
then
echo -e "\e[33mToo many flags entered\e[39m"
usage
exit -1
fi
case $opt in
a)
echo "Starting Automated Testing System..." >&2
cd ATS
./ATS.sh
if [ $? -eq 1 ]
then
echo -e "\e[33mPlease enable tmux before you run the ATS!\e[39m"
fi
;;
b)
echo "Bitbaking..."
cd Bitbake
./fakeBitbake.sh
;;
c)
echo "Beginning Code Review..."
ruby codeReview.rb
;;
f)
echo "Compiling..."
./fakeCompilation.sh
;;
h)
usage
;;
n)
echo "Starting Neural Network"
cd NeuralNetwork
python3 trainNN.py
;;
s)
echo "Searching Hex..."
./hexSearch.sh
;;
\?)
echo -e "\e[33mInvalid option: -$OPTARG\e[39m" >&2
usage
;;
esac
exit
done
echo -e "\e[33mNo flags provided!\e[39m"
usage
exit