forked from zjuchenyuan/pubstats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (24 loc) · 780 Bytes
/
Makefile
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
.PHONY=process topauthors cliques fresh all deploy
all: fresh process
# updated data and process new data
process: topauthors cliques
topauthors:
python3 top_authors.py
cliques:
python3 author_cliques.py
fresh:
# freshen raw data files (checking timestamps)
wget -N https://dblp.uni-trier.de/xml/dblp.xml.gz
wget -N https://dblp.uni-trier.de/xml/dblp.dtd
#wget -N https://raw.githubusercontent.com/emeryberger/CSrankings/gh-pages/dblp-aliases.csv
wget -N https://raw.githubusercontent.com/emeryberger/CSrankings/gh-pages/csrankings.csv
mkdir -p pickle
mkdir -p www
# get the pickling started
python3 parse_dblp.py
deploy:
for i in www/*.html; do \
echo $$i ; \
gzip -f -9 -k $$i ; \
done
unison -prefer=newer -batch www/ ssh://ghul.albtraum.org/pubstats/