/[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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 728 - (hide annotations)
Sat Dec 6 00:19:32 2008 UTC (15 years, 3 months ago) by dpavlin
File MIME type: application/x-sh
File size: 318 byte(s)
support check of single file
1 dpavlin 667 #!/bin/sh
2    
3 dpavlin 728 if [ ! -z "$1" ] ; then
4     perl -Ilib -wc $1
5     exit
6     fi
7    
8 dpavlin 667 svk status -q | grep '.pm$' | cut -c4- | xargs -i perl -Ilib -wc {} 2>&1 \; | tee var/syntax-check
9 dpavlin 689 check=`cat var/syntax-check | grep ' at ' | sed -e 's/^.* at //' -e 's/ line \([0-9]*\),*.*$/ +\1/'`
10     echo "# check $check"
11 dpavlin 667 test ! -z "$check" && vi $check

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26