tspecify annna dir in Makefile - bitreich-memestats - statistical analysis of tags in Freenode/#bitreich-en
git clone git://src.adamsgaard.dk/bitreich-memestats
Log
Files
Refs
LICENSE
---
commit 277b24006ce8268150ece65be9a02607df09f55e
parent 6077d542377d30249b86bd5f3d7ca2e98719d180
Author: Anders Damsgaard 
Date:   Tue, 12 Jan 2021 10:02:27 +0100

specify annna dir in Makefile

Diffstat:
  M Makefile                            |       3 ++-
  M extract-memecount.sh                |       2 +-

2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/Makefile b/Makefile
t@@ -1,6 +1,7 @@
 .POSIX:
 
 MEMECACHE = "/br/gopher/memecache"
+ANNNA = "$(HOME)/annna"
 IRCLOG = "$(HOME)/.irssi/log/Freenode/\#bitreich-en.log"
 
 memecount: plot-memecount.sh top10 media-stats memecount_lin memecount_semilog
t@@ -20,7 +21,7 @@ memecount_semilog: plot-memecount.sh memecount.log
 
 # output format: datecommitn_memes
 memecount.log: extract-memecount.sh
-        ./extract-memecount.sh > $@
+        ./extract-memecount.sh $(ANNNA) > $@
 
 # output format: avg_uses_per_weektag
 all_time_weekly_popularity.tsv: memeuse.tsv all_time_use.tsv
diff --git a/extract-memecount.sh b/extract-memecount.sh
t@@ -1,7 +1,7 @@
 #!/bin/sh
 # generate table of hashtag numbers over time
 
-annnadir="$HOME/code/annna"
+annnadir="${1:-$HOME/code/annna}"
 memefile="modules/hashtags/hashtags.txt"
 update_annna=yes