From bd9e6617827818fd043452c08c606f07b78014a0 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- scripts/cvsaddcurrentdir | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 scripts/cvsaddcurrentdir (limited to 'scripts/cvsaddcurrentdir') diff --git a/scripts/cvsaddcurrentdir b/scripts/cvsaddcurrentdir new file mode 100755 index 00000000..56185f27 --- /dev/null +++ b/scripts/cvsaddcurrentdir @@ -0,0 +1,30 @@ +#!/bin/sh +#Alexander Neundorf +#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 -p "Add file $file to cvs ? (y/n) " answer 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 + -- cgit v1.2.1