head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2010.06.03.07.56.14;	author cvs;	state dead;
branches;
next	1.1;

1.1
date	2010.05.16.17.28.14;	author cvs;	state Exp;
branches;
next	;


desc
@@


1.2
log
@kein cvs
@
text
@#!/bin/sh
# @@(#) add files and directories recursively to the current CVS directory
# (c) 2009 by Dirk Jagdmann 

if [ -z "$1" ] ; then
    echo "usage: cvsadd 'import message'"
    exit 1
fi

if [ -d "$2" ] ; then
    cvs add "$2"
    cd "$2" || exit 1
fi

if [ ! -d CVS ] ; then
    echo "current directory needs to contain a CVS/ directory"
    exit 1
fi

XARGS="xargs -0 -r -t -L 1"

# first add all files in current directory
find . -maxdepth 1 -type f -print0 | $XARGS cvs add
find . -maxdepth 1 -type f -print0 | $XARGS cvs ci -m "$1"

# then add all directories
find . -maxdepth 1 -type d -not -name CVS -a -not -name . -print0 | $XARGS "$0" "$1"

@


1.1
log
@initial
@
text
@@

