-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
69 lines (54 loc) · 1.58 KB
/
Copy pathMakefile
File metadata and controls
69 lines (54 loc) · 1.58 KB
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
# get today's date (yyyy-mm-dd-hhmmss)
TODAY = $(shell date "+%Y-%m-%d-%H%M%S")
MODULES = "beautifulsoup4" "bs4" "mysql.connector" "pylint" "requests" "selenium"
create-venv:
virtualenv -p /home/jacksonfossen/opt/python-3.8.1/bin/python3 venv
setup:
# Create Output Directory
if [[ ! -d "./output" ]] ; then \
mkdir output ; \
fi \
#
# Get Chrome Driver??
# Install Packages
@for lib in $(MODULES) ; do \
if pip3 list $$lib | grep -q "installed" ; then \
echo $$lib already installed, skipping ; \
else \
echo $$lib not found, installing... ; \
pip3 install $$lib ; \
fi \
done;
clean:
rm -rf output/*
super-clean: clean
rm -rf past-output/*
save:
# Creat Past-Output Directory
if [[ ! -d "./past-output" ]] ; then \
mkdir past-output ; \
fi \
# Competitions
if [[ -a "./output/comp-table.txt" ]] ; then \
mv ./output/comp-table.txt ./past-output/comp-table-$(TODAY).txt ; \
fi \
# Events
if [[ -a "./output/events.txt" ]] ; then \
mv ./output/events.txt ./past-output/events-$(TODAY).txt ; \
fi \
# Misfit Events
if [[ -a "./output/misfit-events.txt" ]] ; then \
mv ./output/misfit-events.txt ./past-output/misfit-events-$(TODAY).txt ; \
fi \
# Placements
if [[ -a "./output/placements.txt" ]] ; then \
mv ./output/placements.txt ./past-output/placements-$(TODAY).txt ; \
fi \
# Misfit Placements
if [[ -a "./output/misfit-placements.txt" ]] ; then \
mv ./output/misfit-placements.txt ./past-output/misfit-placements-$(TODAY).txt ; \
fi \
tables-recent: save
python3 LevelUp.py recent
tables-all: save
python3 LevelUp.py all