/usr/bin/cvsaddcurrentdir is in kdesdk-scripts 4:17.12.3-0ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #!/bin/sh
#Alexander Neundorf <neundorf@kde.org>
#copyright 2002, GPL
#call this script to add all files in and below the current dir to cvs
#it adds *.c, *.h, *.C, *.cpp, *.cc automatically
#*~, *.o, *.so, *.lo, *.la, .libs/, .deps/, .#* are ignored
#it asks for the remaining files
#ignore dirs "CVS", ".deps", ".libs"
#ignore files *.o, *.so, *.lo, *.la, *~, .#*
FOUND=`find |grep -v "^\.$"| grep -v CVS| grep -v "\.[ls]\?o$"|grep -v "~$"|grep -v "\.libs/"|grep -v "\.deps/" |grep -v "\.depend/"| grep -v "/\.#" |grep -v "\.la$"`
#echo $FOUND
ask_for_adding() {
echo
read answer"?Add file $file to cvs ? (y/n) " rest
#if [ "$answer" != "y" ]; then echo $file; fi
if [ "$answer" == "y" ]; then cvs add $file; fi
}
for file in $FOUND
do
#matches all *.h, *.c, *.cpp, *.C, *.cpp, *.cc (and some others too)
echo $file | grep "\.[cCh][cp]\?p\?$" && cvs add $file
echo $file | grep -v "\.[cCh][cp]\?p\?$" && ask_for_adding
done
|