File: watch_cvs

package info (click to toggle)
tk-html3 3.0~fossil20110109-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,656 kB
  • sloc: ansic: 48,994; tcl: 25,966; sh: 1,190; yacc: 161; makefile: 24
file content (28 lines) | stat: -rwxr-xr-x 732 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
# Watch the CVS repository for changes in memchan, retrieve the
# changed files and invoke the handler script which propagate the
# changes to other parts of the system.

cd `dirname $0`/..

export CVSROOT
CVSROOT=:pserver:anonymous@cvs.memchan.sourceforge.net:/cvsroot/memchan

if [ 0 -lt `cvs diff memchan 2>/dev/null | wc -l` ]
then
	out=$HOME/logs/memchan
	mkdir -p `dirname $out`

	cvs co memchan >$out 2>&1
	mkdir -p memchan/htdocs/state

        # Use a new htdocs_setup script immediately.
        # Without this copying it would take effect
        # only after with the change after the current
        # one.

        cp ./memchan/tools/htdocs_setup ./tools_setup

	(sleep 60 ; ./tools/htdocs_setup ) &
fi
exit