Admin/Mercurial/convert
author paulson
Tue, 02 Mar 2010 12:59:16 +0000
changeset 35509 13e83ce8391b
parent 28929 32831901e1ae
permissions -rwxr-xr-x
merged

#!/bin/bash
# $Id$

THIS="$(cd "$(dirname "$0")"; pwd)"
SUPER="$(cd "$THIS/.."; pwd)"

LOG="$THIS/log"
date >> "$LOG"


## cvs update

cd "$THIS/cvs"
cvs up -dAP >> "$LOG" 2>&1 || exit 2


## hg convert

export HGRCPATH="$THIS/cvs/Admin/Mercurial/hgrc"

cd "$THIS"
/home/isabelle/mercurial/bin/hg convert --filemap cvs/Admin/Mercurial/filemap cvs isabelle-cvs >> "$LOG" 2>&1 || exit 2

[ -e isabelle-cvs/.hg/hgrc ] || ln -s ../../cvs/Admin/Mercurial/hgrc isabelle-cvs/.hg/hgrc


## logrotate

/usr/sbin/logrotate -s "$THIS/log.state" "$THIS/cvs/Admin/Mercurial/logrotate.conf"