X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=contrib%2Freghunt%2Fexamples%2Freg-watch.awk;fp=contrib%2Freghunt%2Fexamples%2Freg-watch.awk;h=2334215aed5df5f1248a88b232b29b8e55d2379c;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=0000000000000000000000000000000000000000;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/contrib/reghunt/examples/reg-watch.awk b/contrib/reghunt/examples/reg-watch.awk new file mode 100755 index 00000000..2334215a --- /dev/null +++ b/contrib/reghunt/examples/reg-watch.awk @@ -0,0 +1,38 @@ +/result for low patch/ { + sub(".*low patch ","") + sub(" is as expected","") + printf ("<-- %4s\n", $0); + next + } +/result for high patch/ { + sub(".*high patch ","") + sub(" is as expected","") + printf (" %4s -->\n", $0); + next + } +/patches later/ { + sub(".*later than ","") + printf ("<-- %4s\n", $0); + next + } +/patches earlier/ { + sub(".*earlier than ","") + printf (" %4s -->\n", $0); + next + } +/build failed for/ { + sub(".*build failed for ","") + printf (" [%4s]\n", $0); + next + } +/HIGH_PATCH/ { + printf ("* stopped early *\n") + next + } +/changes with/ { + sub(".*changes with id ","") + printf ("+----------+\n") + printf ("| %4s |\n", $0) + printf ("+----------+\n") + next + }