summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-08-08 15:19:43 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-08-08 15:21:49 +0200
commitb918cb2fd66b06bedab29bd7f367075f09c532d9 (patch)
tree45701c5fc7f0de0912d554b1f1ff143943ba5863
parentf49fb27bb081563dbf2d9e38adf26fee4ba58735 (diff)
downloadwatch-bz-b918cb2fd66b06bedab29bd7f367075f09c532d9.tar.gz
watch-bz-b918cb2fd66b06bedab29bd7f367075f09c532d9.tar.xz
watch-bz-b918cb2fd66b06bedab29bd7f367075f09c532d9.zip
Compress multiple doc_scoped flags sharing status in row
Not perfect, but definitely makes the flags area smaller. Also swap abbreviationss for docs_scoped and devel flags: devel: D -> DE docs_scoped: DS -> D Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rwxr-xr-xwatch-bz14
1 files changed, 9 insertions, 5 deletions
diff --git a/watch-bz b/watch-bz
index 5c7bbc4..cfe212f 100755
--- a/watch-bz
+++ b/watch-bz
@@ -49,9 +49,9 @@ if watch --color -n0.1 -g date &>/dev/null; then
PRECOLORIZE="sed"
PRECOLORIZE+=" 's|\( [NAPMQDVRC] \)\(.*\)\([\{]${BZUSER}[\}]\)|\x1b[1;31m\1\x1b[0m\2|'"
COLORIZE="sed"
- COLORIZE+=" -e 's|\([0-9.A-Z]\++[, ]\)|\x1b[1;32m\1\x1b[0m|g'"
- COLORIZE+=" -e 's|\([0-9.A-Z]\+-[, ]\)|\x1b[33m\1\x1b[0m|g'"
- COLORIZE+=" -e 's|\([0-9.A-Z]\+?[, ]\)|\x1b[37m\1\x1b[0m|g'"
+ COLORIZE+=" -e 's|\([0-9.A-Z]\++\+[, ]\)|\x1b[1;32m\1\x1b[0m|g'"
+ COLORIZE+=" -e 's|\([0-9.A-Z]\+-\+[, ]\)|\x1b[33m\1\x1b[0m|g'"
+ COLORIZE+=" -e 's|\([0-9.A-Z]\+?\+[, ]\)|\x1b[37m\1\x1b[0m|g'"
COLORIZE+=" -e 's|\(I?[, ]\)|\x1b[1;36m\1\x1b[0m|g'"
COLORIZE+=" -e 's|\(!!!\)|\x1b[1;31m\1\x1b[0m|'"
fi
@@ -172,12 +172,16 @@ do_watch () {
-e \"s|${SEP}unspecified|${SEP} ? |\" \
-e \"s|qa_ack|QA|\" \
-e \"s|pm_ack|PM|\" \
- -e \"s|devel_ack|D|\" \
+ -e \"s|devel_ack|DE|\" \
-e \"s|needinfo|I|\" \
-e \"s|exception|E|\" \
-e \"s|blocker|BL|\" \
-e \"s|requires_release_note|RN|\" \
- -e \"s|docs_scoped|DS|g\" \
+ -e \"s|docs_scoped|D|g\" \
+ -e \":dsloop\" \
+ -e \"s|\([^A-Z]D-\+\),D-|\1-|g;tdsloop\" \
+ -e \"s|\([^A-Z]D+\+\),D+|\1+|g;tdsloop\" \
+ -e \"s|\([^A-Z]D?\+\),D?|\1?|g;tdsloop\" \
-e \"s|rhel-||g\" \
-e \"s|qe_test_coverage[?+-][,]\?||\" \
-e \"s|None||\" | ${TAIL}"