]> git.donarmstrong.com Git - debbugs-presentations.git/blobdiff - debconf14/data/Makefile
add rc bugs and rule to make them
[debbugs-presentations.git] / debconf14 / data / Makefile
diff --git a/debconf14/data/Makefile b/debconf14/data/Makefile
new file mode 100644 (file)
index 0000000..ffd10f6
--- /dev/null
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+DEBBUGS_MASTER=buxtehude.debian.org
+
+DATA_FILES=sorted_bug_growth_for_r_every_500.txt rc_bugs.txt
+
+all: 
+       echo "Not doing anything";
+
+
+sorted_bug_growth_for_r_every_500.txt: 
+       ssh $(DEBBUGS_MASTER) "(cd /srv/bugs.debian.org/spool; find db-h archive -name '*.report' -printf '%T@\t%f\n')" | \
+               sort -n | perl -n -e 'BEGIN {$$a = 0; } if (! ($$a++ % 500)) {s/.report//; print $$_; }' > $@
+
+rc_bugs.txt: 
+       ssh $(DEBBUGS_MASTER) '(cd /srv/bugs.debian.org/bugscan/counts/; echo -e "date\ttotal\tpending\tpatch\tunknown\tignore\tunknown\taffects.testing\taffects.stable"; for a in count-*; do echo -n $${a##count-}; echo -n " "; cat $$a; done; )' > $@
+
+
+.PHONY: $(DATA_FILES)