On Friday 7 September 2007 ANGonline's cat, walking on the keyboard, wrote:
> So I'd like to avoid versioning of those uninteresting (to me) file.
> I found that svn:ignore can help me to avoid the versioning of known
> *unwanted* file pattern while I olny now the pattern of *wanted* file: *.h
> *.c *.m.
Not sure if this is what you want and is the best way of doing: supposing you
can run scripts (like shell scripts) you can traverse your tree examinating
each file and making an add only of those that interest you. For instance in
bash something like this:
#!/bin/bash
# invoke with the tree root
cd $1
for f in *
do
if [ -f $f ]
then
case $f in
*.h | *.c | *.m) svn add $f;;
*) ;;
esac
else
if [-d $f]
then
$0 $f
fi
done
Hopes this help.
Luca
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Sep 10 08:39:55 2007