bitreich-memestats

metrics and graphs for the bitreich meme collection
git clone git://src.adamsgaard.dk/bitreich-memestats # fast
git clone https://src.adamsgaard.dk/bitreich-memestats.git # slow
Log | Files | Refs | LICENSE Back to index

commit de4c6bca50d8e9eaf654b32c5fda4ff83b36a52a
parent c42bd61ec30b6ff6a4324a8c137a669f00bd6e0f
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon, 30 Aug 2021 17:26:49 +0200

extract-memecount.sh: handle creation of memecount.log

Signed-off-by: Christoph Lohmann <20h@r-36.net>

Diffstat:
Mextract-memecount.sh | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/extract-memecount.sh b/extract-memecount.sh @@ -18,9 +18,13 @@ if [ ! -e "${annnadir}/${memefile}" ]; then exit 1 fi +cd "$annnadir" if [ -f "${outputfile}" ]; then lastrevision="$(tail -n 1 "${outputfile}" | cut -f 2)" revisionrange="${lastrevision}..HEAD" +else + firstrevision="$(git rev-list --max-parents=0 HEAD)" + revisionrange="${firstrevision}..HEAD" fi case "${outputfile}" in @@ -31,7 +35,6 @@ case "${outputfile}" in ;; esac -cd "$annnadir" if [ "$update_annna" = "yes" ]; then git pull >/dev/null 2>&1 fi