#!/bin/sh
# DocumentId:	$Id: dpsch-gencvsignore,v 1.3 2001/09/01 15:12:51 ola Exp $
# Author:	$Author: ola $
#		Ola Lundqvist <opal@debian.org>
# Summary:
#	This tool creates .cvsignore file for normal debian build.

if [ ! -z "$1" ] ; then
    echo "USAGE: dpsch-gencvsignore"
fi

if [ ! -d debian ] ; then
    echo "No debian dir, exiting."
    exit 0
fi

if [ ! -e debian/control ] ; then
    echo "No debian control file, exiting."
    exit 0
fi

if [ ! -e .cvsignore ] ; then
    echo "*-stamp" > .cvsignore
else
    echo ".cvsignore file already exists."
fi

if [ ! -e debian/.cvsignore ] ; then
    echo "*.debhelper"	>  debian/.cvsignore
    echo "*.substvars"	>> debian/.cvsignore
    echo "files"	>> debian/.cvsignore
    dpsch-listbinpkgs	>> debian/.cvsignore
else
    echo "debian/.cvsignore file already exists."
fi
