[PATCH] Add small script to generate an issue overview from a roundup querry

Wald Commits scm-commit at wald.intevation.org
Mon Aug 19 12:54:16 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1376909283 -7200
# Node ID 93c0a1692aa56d279220e10e9176930b0794c690
# Parent  90f66b4fc34d3cfd5325d8839c2d4bf9f8b8b993
Add small script to generate an issue overview from a roundup querry.

    Yes it's quick and dirty but it does it's job.

diff -r 90f66b4fc34d -r 93c0a1692aa5 contrib/make_flys_release/issue_overview.sh
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/make_flys_release/issue_overview.sh	Mon Aug 19 12:48:03 2013 +0200
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+# Use this on an exported query from roundup
+# Known issue: Tiles with more then three , in them fail.
+# Yes (ah) I do not know how to correctly handle the csv quoting...
+
+echo "-------------"
+echo "Unter anderem wurden folgende issues bearbeitet und können getestet werden:"
+
+sed 's/"\(.*\),\(.*\)"/"\1§\2"/g' "$1" | \
+sed 's/"\(.*\),\(.*\)"/"\1§\2"/g' | \
+sed 's/"\(.*\),\(.*\)"/\1§\2/g' | \
+gawk -F, '$5 > 5 {
+print "- flys/issue"$2 " ("$1")"
+print "[https://roundup-intern.intevation.de/flys/issue"$2"]"
+print ""
+}' | sed 's/§/,/g'
+
+
+echo "-------------"
+echo "Desweiteren gab es fortschritte in folgenden Issues:"
+echo ""
+sed 's/"\(.*\),\(.*\)"/"\1§\2"/g' "$1" | \
+sed 's/"\(.*\),\(.*\)"/"\1§\2"/g' | \
+sed 's/"\(.*\),\(.*\)"/\1§\2/g' | \
+gawk -F, '$5 <= 5 && $5 > 0 {
+print "- flys/issue"$2 " ("$1")"
+print "[https://roundup-intern.intevation.de/flys/issue"$2"]"
+print ""
+}' | sed 's/§/,/g'
+


More information about the Dive4elements-commits mailing list