commit 8b472486508e8fc511caba8c525d6519e1ee7383
parent 2663b2f37121a05ddedc89592d906462030527af
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 17 Apr 2020 11:06:32 +0200
Rename all time weekly popularity file
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,6 +1,6 @@
log = ~/.irssi/log/Freenode/\#bitreich-en.log
-all: all_time_use.tsv all_time_popularity.tsv
+all: all_time_use.tsv all_time_weekly_popularity.tsv
# format: day<tab>date<tab>time<tab>user<tab>tag
memeuse.tsv: extract_memeuse.awk
@@ -12,13 +12,13 @@ all_time_use.tsv: memeuse.tsv
awk '{print $$1"\t"$$2}' > $@
# format: avg_uses_per_week<tab>tag
-all_time_popularity.tsv: memeuse.tsv all_time_use.tsv
+all_time_weekly_popularity.tsv: memeuse.tsv all_time_use.tsv
awk -v N_weeks="$$(awk 'END{print $$1/7}' memeuse.tsv)" \
'{print $$1/N_weeks"\t"$$2}' all_time_use.tsv > $@
clean:
rm -f memeuse.tsv
rm -f all_time_use.tsv
- rm -f all_time_popularity.tsv
+ rm -f all_time_weekly_popularity.tsv
.PHONY: all clean