On Wednesday, 3 September 2014 at 09:20:44 UTC, Andrei Alexandrescu wrote:
The relevant makefile rules are:

$(OUT)/downloads:
        grep -o 'GET [^ ]* ' \
          $(DATADIR)/downloads/2013-* $(DATADIR)/downloads/2014-* \
          | grep 'dmd' | sed -e 's/:GET//' -e 's|^.*downloads/||' \
          | sed -e 's/ .*dmd/ dmd/' | sort >$@.tmp
        mv $@.tmp $@

$(OUT)/downloads.monthly: $(OUT)/downloads
        sed -e 's/-.. .*//' $^ | uniq -c >>$@.tmp
        mv $@.tmp $@

Nice, might be worth to spend some time filtering out machine traffic, e.g. from running travis-ci. Also equally interesting is to group those numbers by DPL release and OS.

Reply via email to