1 |
#!/bin/sh |
#!/bin/sh |
2 |
|
|
3 |
svk status -q | grep '.pm$' | cut -c4- | xargs -i perl -Ilib -wc {} 2>&1 \; | tee var/syntax-check |
svk status -q | grep '.pm$' | cut -c4- | xargs -i perl -Ilib -wc {} 2>&1 \; | tee var/syntax-check |
4 |
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/'` |
5 |
|
echo "# check $check" |
6 |
test ! -z "$check" && vi $check |
test ! -z "$check" && vi $check |