27444
|
1 |
#!/bin/bash
|
|
2 |
# $Id$
|
|
3 |
|
|
4 |
THIS="$(cd "$(dirname "$0")"; pwd)"
|
|
5 |
SUPER="$(cd "$THIS/.."; pwd)"
|
|
6 |
|
27462
|
7 |
LOG="$THIS/log"
|
27465
|
8 |
date >> "$LOG"
|
|
9 |
|
|
10 |
|
|
11 |
## cvs update
|
27462
|
12 |
|
27444
|
13 |
cd "$THIS/cvs"
|
27463
|
14 |
cvs up -dAP >> "$LOG" 2>&1 || exit 2
|
27444
|
15 |
|
|
16 |
|
27465
|
17 |
## hg convert
|
|
18 |
|
27457
|
19 |
export HGRCPATH="$THIS/cvs/Admin/Mercurial/hgrc"
|
|
20 |
|
27444
|
21 |
cd "$THIS"
|
28929
|
22 |
/home/isabelle/mercurial/bin/hg convert --filemap cvs/Admin/Mercurial/filemap cvs isabelle-cvs >> "$LOG" 2>&1 || exit 2
|
27459
|
23 |
|
28929
|
24 |
[ -e isabelle-cvs/.hg/hgrc ] || ln -s ../../cvs/Admin/Mercurial/hgrc isabelle-cvs/.hg/hgrc
|
27464
|
25 |
|
|
26 |
|
27465
|
27 |
## logrotate
|
|
28 |
|
27464
|
29 |
/usr/sbin/logrotate -s "$THIS/log.state" "$THIS/cvs/Admin/Mercurial/logrotate.conf"
|