forked from paulmillr/top-github-users
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·37 lines (28 loc) · 835 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
31
32
33
34
35
36
37
all: get format
get: 1 2
format: 3
1:
if [ -e temp-logins.json ]; then mv temp-logins.json old-logins.json; fi;
npx coffee get-users.coffee
# for debug - requires get-users.coffee/get-details.coffee already ran:
#npx coffee check-logins.coffee
2:
npx coffee get-details.coffee
3:
npx coffee format-languages.coffee
npx coffee format-users.coffee
4: sync-raw sync-formatted
sync: sync-raw sync-formatted
force-sync: force-sync-raw sync-formatted
sync-raw:
cd raw && git commit -am 'Update stats.' && git push
force-sync-raw:
cd raw && git commit -am 'Update stats.' --amend && git push --force
sync-formatted:
cd formatted && git commit -am 'Sync.' --amend && git push --force
clean:
rm temp-logins.json
rm old-logins.json
rm raw/github-languages-stats.json
rm raw/github-users-stats.json
rm formatted/active.md