diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2012-03-09 20:01:09 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2012-03-09 20:01:09 +0100 |
commit | e3b4ba80be130bce4143151b4aa30bb44479c1c9 (patch) | |
tree | 17a48af203ee09b9810e1a8916a22ac2fa7e47f3 /watch-bz | |
parent | c34e04427b62c0e33d59be6064ca77824b69a8b9 (diff) | |
download | watch-bz-e3b4ba80be130bce4143151b4aa30bb44479c1c9.tar.gz watch-bz-e3b4ba80be130bce4143151b4aa30bb44479c1c9.tar.xz watch-bz-e3b4ba80be130bce4143151b4aa30bb44479c1c9.zip |
remove unreasonable timer, abbreviations
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'watch-bz')
-rwxr-xr-x | watch-bz | 35 |
1 files changed, 31 insertions, 4 deletions
@@ -17,7 +17,10 @@ STATUS=OPEN REFRESH_INTERVAL=600 # [s], better not to drain bugzilla's power... SEP=@@@ -OUTPUT_FMT="%{component}$SEP%{bug_id}$SEP%{priority}$SEP%{status}$SEP%{short_desc}" +OUTPUT_FMT="%{component}$SEP%{bug_id}$SEP%{product}$SEP%{priority}$SEP%{status}$SEP%{flags}$SEP%{short_desc}" +#OUTPUT_FMT="%{component}$SEP%{bug_id}$SEP%{product}$SEP%{priority}$SEP%{status}$SEP%{short_desc}" + +WIDTH=$(( $(stty size | cut -d' ' -f2) - 1 )) if [ $# -ge 1 ]; then if [[ "$1" = -* ]]; then @@ -31,9 +34,33 @@ fi watch -t --interval $REFRESH_INTERVAL \ "$BUGZILLA query -c $COMPONENT -t $STATUS --outputformat $OUTPUT_FMT \ - | table-data $SEP \ | sed -u \ - -e 's/urgent/URGENT/' \ - -e 's/important/IMPORTANT/'" + -e \"s/${SEP}Red Hat Enterprise Linux /${SEP}EL/\" \ + -e \"s/${SEP}Fedora/${SEP}fed/\" \ + -e \"s/${SEP}NEW/${SEP}N/\" \ + -e \"s/${SEP}ASSIGNED/${SEP}A/\" \ + -e \"s/${SEP}POST/${SEP}P/\" \ + -e \"s/${SEP}MODIFIED/${SEP}M/\" \ + -e \"s/${SEP}ON_QA/${SEP}Q/\" \ + -e \"s/${SEP}ON_DEV/${SEP}D/\" \ + -e \"s/${SEP}VERIFIED/${SEP}V/\" \ + -e \"s/${SEP}RELEASE_PENDING/${SEP}R/\" \ + -e \"s/${SEP}CLOSED/${SEP}C/\" \ + -e \"s/${SEP}urgent/${SEP}!!!/\" \ + -e \"s/${SEP}high/${SEP}!!/\" \ + -e \"s/${SEP}medium/${SEP} ! /\" \ + -e \"s/${SEP}low/${SEP} ~ /\" \ + -e \"s/${SEP}unspecified/${SEP} ? /\" \ + -e \"s/qa_ack/QA/\" \ + -e \"s/pm_ack/PM/\" \ + -e \"s/devel_ack/D/\" \ + -e \"s/needinfo/I/\" \ + -e \"s/exception/E/\" \ + -e \"s/blocker/BL/\" \ + -e \"s/requires_release_note/RN/\" \ + -e \"s/rhel-//\" \ + -e \"s/None//\" \ + | tee out1.txt | table-data $SEP \ + | cut -c-$WIDTH | tee out.txt" # todo: colours for priorities (rhbz#801626) #-e 's/\(urgent\)/\^\[\[31m\1\^\[\[0m/' \ |