Changeset 10690 in genesis for tools/svn-hook/genesis-check.sh
- Timestamp:
- May 6, 2012, 8:01:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/svn-hook/genesis-check.sh
r10091 r10690 2 2 # 3 3 # Check for valid genesis syntax 4 # Rick van der Zwet, 2009 4 # 5 # Rick van der Zwet <rick@wirelessleiden.nl> 6 # 5 7 REPOS="$1" 6 8 TXN="$2" 7 9 8 10 TMPDIR=`mktemp -d -t $(basename $0 .sh)` 9 10 # Clean up11 trap "rm -R $TMPDIR; exit 0" 012 trap "rm -R $TMPDIR; exit 1" 1 2 1513 11 14 12 # External definition used for debugging … … 17 15 18 16 # Check whether we need to check something first 19 $SVNLOOK changed $REPOS | grep -q $GENESISDIR17 $SVNLOOK changed -t $TXN $REPOS | grep -q $GENESISDIR 20 18 if [ $? -eq 1 ]; then 21 19 exit 0 22 20 fi 21 22 # Allow us to commit stuff even if the validator fails 23 $SVNLOOK log -t $TXN $REPOS | grep -q 'no-genesis-check' && exit 0 24 25 # Clean up on exit 26 trap "rm -R $TMPDIR" 0 1 2 3 15 23 27 24 28 echo "Checking genesis config, please hold your horses..." 1>&2
Note:
See TracChangeset
for help on using the changeset viewer.