--- trunk/bin/check-syntax.sh 2008/12/02 18:02:57 683 +++ trunk/bin/check-syntax.sh 2008/12/02 22:03:56 689 @@ -1,5 +1,6 @@ #!/bin/sh svk status -q | grep '.pm$' | cut -c4- | xargs -i perl -Ilib -wc {} 2>&1 \; | tee var/syntax-check -check=`cat var/syntax-check | grep 'syntax error' | sed -e 's/^.* at //' -e 's/ line / +/' -e 's/,.*$//'` +check=`cat var/syntax-check | grep ' at ' | sed -e 's/^.* at //' -e 's/ line \([0-9]*\),*.*$/ +\1/'` +echo "# check $check" test ! -z "$check" && vi $check