Hello Henning.

Thank you for adding the ignore properties to the root of the repository.

I agree that manually setting the properties on all of the directories
would be very time consuming.  Luckily, I have a short shell script
that will do it automatically, if you choose to add the properties.
:-)

Here it is:

#!/bin/sh
dirlist="modules db parser mi mem"
ignore_file=ignore-these-files.txt

cat <<EOF > $ignore_file
*.d
*.so
EOF

for i in $dirlist; do
  find $i/ -type d | sed -e '/.svn\|doc\|example\|config\|lib/d' |
xargs svn propset svn:ignore --file $ignore_file
done

cat <<EOF > $ignore_file
openserunix
openserunix.d
EOF

svn propset svn:ignore --file $ignore_file utils/openserunix

rm -f $ignore_file

# END OF SCRIPT

All you have to do is run the script from the root of the openser
checkout.  The script will then set the SVN properties of all correct
subdirectories and filter out the doc directories underneath each of
the module directories.

I understand if you don't want to add the properties but I just
thought I'd pass along my script in case you just didn't want to
manually add all of the properties.

Cheers,
-Curt


On 5/18/07, Henning Westerholt <[EMAIL PROTECTED]> wrote:
On Donnerstag, 17. Mai 2007, Curt Moore wrote:
> Hello all.
>
> I was doing some testing today and checked out a copy of openser from
> SVN.  After modifying some files, compiling, and running "svn status"
> I noticed that there are very few svn:ignore properties setup within
> the project.  Would it be possible to have someone add svn:ingore
> properties for *.so, *.o and *.d so that these files are ignored when
> performing SVN commands?  Alternatively, this could be done by having
> everyone modify their personal .subversion file to ingore these file
> types but if the change were made in the repository it would be easier
> to change the files which are ingored for the project at the project
> level in the future.
>
> Just a suggestion...

Hello Curt,

i've add the suggested file types to the root svn:ignore property. But this
setting is unfortunally not applied recursivly, and setting this property for
all directories containing some src files is perhaps a little bit to much..

Just include these file pattern into your subversion/config file, this should
be the easiest solution.

Henning


_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to