/[Frey]/branches/no-pager/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 /branches/no-pager/bin/check-syntax.sh

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

revision 737 by dpavlin, Wed Dec 3 21:12:43 2008 UTC revision 738 by dpavlin, Sat Dec 6 15:29:10 2008 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2    
3    if [ ! -z "$1" ] ; then
4            perl -Ilib -wc $1
5            exit
6    fi
7    
8  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
9  check=`cat var/syntax-check | grep ' at ' | sed -e 's/^.* at //' -e 's/ line \([0-9]*\),*.*$/ +\1/'`  check=`cat var/syntax-check | grep ' at ' | sed -e 's/^.* at //' -e 's/ line \([0-9]*\),*.*$/ +\1/'`
10  echo "# check $check"  echo "# check $check"

Legend:
Removed from v.737  
changed lines
  Added in v.738

  ViewVC Help
Powered by ViewVC 1.1.26