Last change
on this file since 7091 was 7075, checked in by rick, 15 years ago |
DIY tool for people to check for valid perl config files
|
-
Property svn:executable
set to
*
|
File size:
357 bytes
|
Rev | Line | |
---|
[7075] | 1 | #!/bin/sh
|
---|
| 2 | # Check all wleiden.conf files on valid perl syntax for people not familiar
|
---|
| 3 | # with perl to generate right configs
|
---|
| 4 |
|
---|
| 5 | DIRNAME=`dirname $0`
|
---|
| 6 |
|
---|
| 7 | RETVAL=0
|
---|
| 8 | for FILE in ${DIRNAME}/*/wleiden.conf; do
|
---|
| 9 | perl -c $FILE
|
---|
| 10 | if [ $? -ne 0 ]; then
|
---|
| 11 | RETVAL=1
|
---|
| 12 | break
|
---|
| 13 | fi
|
---|
| 14 | done
|
---|
| 15 |
|
---|
| 16 | if [ "${RETVAL}" -eq 1 ]; then
|
---|
| 17 | echo "Please fix errors before commit!"
|
---|
| 18 | exit 1
|
---|
| 19 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.