source: genesis/tools/before-commit.sh@ 9936

Last change on this file since 9936 was 8858, checked in by rick, 14 years ago

Make sure the relative directory is correct again.

  • Property svn:executable set to *
File size: 481 bytes
RevLine 
[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
5DIRNAME=`dirname $0`
6
7RETVAL=0
[8858]8for FILE in ${DIRNAME}/../nodes/*/wleiden.conf; do
[7254]9 perl -c $FILE
[7075]10 if [ $? -ne 0 ]; then
11 RETVAL=1
12 break
13 fi
14done
15
[7254]16if [ $RETVAL -eq 0 ]; then
[7297]17 sh ${DIRNAME}/dubbelipcheck.sh
[7254]18 if [ $? -ne 0 ]; then
19 RETVAL=1
20 fi
21fi
22
[7075]23if [ "${RETVAL}" -eq 1 ]; then
24 echo "Please fix errors before commit!"
25 exit 1
26fi
Note: See TracBrowser for help on using the repository browser.