File: ruby-syntax.sh

package info (click to toggle)
migemo 0.32-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,764 kB
  • ctags: 123
  • sloc: ruby: 971; sh: 541; makefile: 113
file content (8 lines) | stat: -rwxr-xr-x 157 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
#! /bin/sh
for i in ../*.rb; do
    ruby -wc $i >/dev/null 2>tmp.syntax
    if test ! -z "`cat tmp.syntax`"; then
        cat tmp.syntax
	exit 1
    fi
done