#!/bin/bash # # ========================================================================= # Copyright 2003 Josh Glover # # LICENCE: # # This file is distributed under the terms of the BSD License (version # 2). See the COPYING file, which should have been distributed with this # file, for details. If you did not receive the COPYING file, see: # # http://www.jmglov.net/opensource/licenses/bsd.txt # # cvs-add # # DESCRIPTION: # # Performs a recursive 'cvs add' command on the specified directory. # # USAGE: # # cvs-add {} {} # # where: # # directory to add # # If no arguments are given, cvs-add will recursively add the current # working directory. # # EXAMPLES: # # cvs-add foo bar/bar.pl # # DEPENDENCIES: # # Bash # CVS # grep # # MODIFICATIONS: # # Josh Glover (2003/10/27): Added -R in order to # include files (and directories) that exist in the repository but not # locally # Josh Glover (2003/10/05): Initial CVS revision # ========================================================================= # If we have no arguments, assume '.' if [ -z "$1" ]; then args="." else args="$@" fi # if (assuming '.') find ${args} | xargs cvs add