#!/bin/sh -e 
#
# $Id: makedebchangelog.sh,v 1.2 2002/01/20 14:23:52 rdm Exp $
#
# Write a changelog file 
#
tgtdir=$1 ; shift
debdir=$1 ; shift 
versi=$1

cp ${debdir}/changelog ${tgtdir}

if `grep -q "root ($versi" ${tgtdir}/changelog` ; then 
    echo "Not a new ROOT version"
else
    dch -v ${versi} "Bumped Debian GNU/Linux version with ROOT"
    cp ${tgtdir}/changelog ${debdir}/
fi

#
# $Log: makedebchangelog.sh,v $
# Revision 1.2  2002/01/20 14:23:52  rdm
# Mega patch by Christian Holm concerning the configure, build and
# Debian and RedHat packaging scripts. The configure script has been
# rationalized (introduction of two shell functions to find package
# headers and libraries). Extensive update of the INSTALL writeup,
# including description of all new packages (SapDB, PgSql, etc.).
# More options to the root-config script. Man page for memprobe.
# Big overhaul of the Debian and RedHat packaging scripts, supporting
# the new libraries.
#
# Revision 1.1  2001/04/23 14:11:47  rdm
# part of the debian and redhat build system.
#
#
