root/trunk/hotstuff/scripts/maintenance.sh

Revision 523, 0.6 KB (checked in by josef, 3 years ago)

- automate scanning process for non-SVN-backed repos as well

  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3UPDATEFILE=~/.hotstuff_needs_update
4
5if [ ! -f $UPDATEFILE ]; then
6        exit
7fi
8rm -f $UPDATEFILE
9
10LOG=~/logs/maintenance.log
11
12mkdir -p ~/logs
13svn up ~/directory >/dev/null
14
15for repofile in /etc/hotstuff.d/*; do
16        repo=`basename $repofile`
17        repourl=`grep "^\\\$repository" $repofile | cut -d " " -f 1`
18        if [ ! -z $repourl ]; then
19                hotstuff-versioning -c $repofile --repo |\
20                        grep -v "leave file" |\
21                        grep -v "signature" |\
22                        grep -v "At revision" |\
23                        grep -v "dismiss" >> $LOG.$repo
24        else
25                hotstuff-scan -c $repofile >> $LOG.$repo
26                #hotstuff-versioning -c $repofile [--setup]
27        fi
28done
29
Note: See TracBrowser for help on using the browser.