author | wenzelm |
Tue, 26 Aug 2008 11:42:46 +0200 | |
changeset 28000 | ca56bbb99607 |
parent 27465 | 79db00d0fba9 |
child 28118 | c21ac4bd18a9 |
permissions | -rwxr-xr-x |
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 |
||
27444 | 19 |
case $(hostname) in |
20 |
||
21 |
atbroy51) |
|
28000
ca56bbb99607
replaced /home/isabelle/html-data/isabelle-repos by /home/isabelle-repository/repos;
wenzelm
parents:
27465
diff
changeset
|
22 |
export HG=/home/isabelle-repository/repos/mercurial-atbroy51/bin/hg |
ca56bbb99607
replaced /home/isabelle/html-data/isabelle-repos by /home/isabelle-repository/repos;
wenzelm
parents:
27465
diff
changeset
|
23 |
export PYTHONPATH=/home/isabelle-repository/repos/mercurial-atbroy51/lib/python2.4/site-packages |
27444 | 24 |
;; |
25 |
||
26 |
atbroy100) |
|
28000
ca56bbb99607
replaced /home/isabelle/html-data/isabelle-repos by /home/isabelle-repository/repos;
wenzelm
parents:
27465
diff
changeset
|
27 |
export HG=/home/isabelle-repository/repos/mercurial-atbroy100/bin/hg |
ca56bbb99607
replaced /home/isabelle/html-data/isabelle-repos by /home/isabelle-repository/repos;
wenzelm
parents:
27465
diff
changeset
|
28 |
export PYTHONPATH=/home/isabelle-repository/repos/mercurial-atbroy100/lib64/python2.4/site-packages |
27444 | 29 |
;; |
30 |
||
31 |
esac |
|
32 |
||
27457 | 33 |
export HGRCPATH="$THIS/cvs/Admin/Mercurial/hgrc" |
34 |
||
27444 | 35 |
cd "$THIS" |
27463 | 36 |
"$HG" convert --filemap cvs/Admin/Mercurial/filemap cvs hg >> "$LOG" 2>&1 || exit 2 |
27459 | 37 |
|
38 |
[ -e hg/.hg/hgrc ] || ln -s ../../cvs/Admin/Mercurial/hgrc hg/.hg/hgrc |
|
27464 | 39 |
|
40 |
||
27465 | 41 |
## logrotate |
42 |
||
27464 | 43 |
/usr/sbin/logrotate -s "$THIS/log.state" "$THIS/cvs/Admin/Mercurial/logrotate.conf" |