5 echo "usage: $0 <warning file>"
11 echo -ne "\033]0;$*\007"
12 echo ========================================
14 echo ----------------------------------------
19 echo "n - skips to next message"
20 echo "f - skips to next file"
21 echo "? - print this message again"
28 echo -n "What do you think?: "
30 if echo $ans |
grep ^$
> /dev
/null
; then
35 echo $sm_err >> summary
37 echo ========== >> summary
40 if [ "$1" = "--new" ] ; then
46 if [ "$file" = "" ] ; then
47 if [ -e err-list
] ; then
54 TXT
=$
(cat $file |
uniq -f 2)
58 for sm_err
in $TXT ; do
59 file=$
(echo $sm_err | cut
-d ' ' -f 1)
60 line
=$
(echo $sm_err | cut
-d ' ' -f 2)
62 if [ "$file" = "$skip_file" ] ; then
67 last
=$
(echo $sm_err | cut
-d ' ' -f 3-)
68 last
=$
(echo $last |
sed -e 's/line .*//')
70 if [ "$NEW" = "Y" ] ; then
71 if grep -F "$last" *summary
* > /dev
/null
; then
72 echo "skipping $sm_err"
79 #grep -A1 "$file $line" *summary* 2> /dev/null
80 grep -A1 -F "$last" *summary
* 2> /dev
/null
83 while echo $ans |
grep '?' > /dev
/null
; do
84 echo -n "[? for help]: "
86 if echo $ans |
grep n
> /dev
/null
; then
89 if echo $ans |
grep f
> /dev
/null
; then
93 if echo $ans |
grep '?' > /dev
/null
; then
98 # I have this in my .vimrc
99 # map <C-j> :! echo $sm_err<CR>