#!/bin/bash

# This one originates from http://www.gentoo.org

#various paths

CVSDIR=..
WORK_DIR=Tools
OUTLOG=${WORK_DIR}/cl.xml
XSLTP=`which xsltproc`

#the main script
cd $CVSDIR
. set_env
cvs login

today=`date -R`
cvsdate=-d\'"Tue, 11 Nov 2003 17:40:00 +0200"\<${today}\'

#generate cvs2cl.pl XML output
cvs2cl --xml --xml-encoding iso-8859-15 --noxmlns -f ${OUTLOG} -l "${cvsdate}" 

# convert cvs2cl.pl XML
$XSLTP -o ${WORK_DIR}/ieee1394-cl.html ${WORK_DIR}/cl2html.xsl ${OUTLOG}

rm ${OUTLOG}

cvs logout
