/[Frey]/trunk/bin/check-syntax.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/bin/check-syntax.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/bin/syntax-check.sh revision 667 by dpavlin, Tue Dec 2 00:43:39 2008 UTC trunk/bin/check-syntax.sh revision 689 by dpavlin, Tue Dec 2 22:03:56 2008 UTC
# Line 1  Line 1 
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

Legend:
Removed from v.667  
changed lines
  Added in v.689

  ViewVC Help
Powered by ViewVC 1.1.26