2 # © 2012 Han Boetes <han@mijncomputer.nl> (see also: LICENSE)
6 zcat $(find /var/log/lighttpd/build.i3wm.org -type f -name "access.log.*.gz" | sort | tail -5) > $weblog
7 # this will match the latest logfile, which is not yet gzipped
8 find /var/log/lighttpd/build.i3wm.org/log$YEAR -type f \! -name "access.log.*.gz" -exec cat '{}' \; >> $weblog
9 cat /var/log/lighttpd/build.i3wm.org/access.log >> $weblog
12 # create a git output logfile. Only keep the first 6 chars of the release hash
13 git log -150 --pretty=' %h %s' next > $gitlog
15 awk '/i3-wm_.*\.deb/ {print $7}' $weblog|awk -F'/' '{print $NF}'|awk -F'_' '{print $2 }'|awk -F'-' '{print $NF}' |cut -c 2-8|sort |uniq -c | while read line; do
17 # $1 is the number of downloads, $2 is the release md5sum
18 sed -i "/$2/s|^ |$(printf '%3i' $1) d/l |" $gitlog