]>
git.wh0rd.org - home.git/blob - .bin/cvs-import
5 if [[ $# -eq 0 ]] ||
[[ $1 == "-h" ]] ; then
6 echo "Usage: ${0##*/} <dir to import> [more dirs]"
11 if [[ ! -e ${dir} ]] ; then
12 echo "cvs-import: $1: directory does not exist" 1>&2
15 dir
=$
(realpath
"${dir}")
17 echo "Importing ${dir} and kids"
19 cvs
-Q add
"${dir##*/}"
24 find .
-mindepth ${depth} -maxdepth ${depth} \
25 '!' '(' -name 'CVS' -o -wholename '*/CVS/*' ')' "$@"
30 while [[ -n $
(find_files
${i}) ]] ; do
31 echo "Importing at depth ${i}"
32 find_files
${i} -exec cvs
-Q add
{} +