On Thursday 04 December 2008 1:17:59 pm Daniel Kulp wrote: > On Thursday 04 December 2008 1:08:01 pm Andrew Stitcher wrote: > > If that is the case we need to make sure that *all* text files have the > > attribute set (not just cpp ones). > > Yep. > > I've attached a script I've used for this in the past (requires gnu > utilities, so probable linux required).
One more note: You can make svn add the property automatically when you run "svn add file" by updating your ~/.subversion/config file. Turn on: enable-auto-props = yes in the [miscellany] And then define a bunch of auto-props. I've attached my config to use as an example. Note that mine also sets mime types and such for some files. That allows a proper mime-type to be set if you browse the SVN repository with your browser. -- Daniel Kulp [EMAIL PROTECTED] http://dankulp.com/blog
### This file configures various client-side behaviors. ### ### The commented-out examples below are intended to demonstrate ### how to use this file. ### Section for authentication and authorization customizations. # [auth] ### Set store-passwords to 'no' to avoid storing passwords in the ### auth/ area of your config directory. It defaults to 'yes'. ### Note that this option only prevents saving of *new* passwords; ### it doesn't invalidate existing passwords. (To do that, remove ### the cache files by hand as described in the Subversion book.) # store-passwords = no ### Set store-auth-creds to 'no' to avoid storing any subversion ### credentials in the auth/ area of your config directory. ### It defaults to 'yes'. Note that this option only prevents ### saving of *new* credentials; it doesn't invalidate existing ### caches. (To do that, remove the cache files by hand.) # store-auth-creds = no ### Section for configuring external helper applications. ### Set editor to the command used to invoke your text editor. ### This will override the environment variables that Subversion ### examines by default to find this information ($EDITOR, ### et al). ### Set diff-cmd to the absolute path of your 'diff' program. ### This will override the compile-time default, which is to use ### Subversion's internal diff implementation. ### Set diff3-cmd to the absolute path of your 'diff3' program. ### This will override the compile-time default, which is to use ### Subversion's internal diff3 implementation. ### Set diff3-has-program-arg to 'true' or 'yes' if your 'diff3' ### program accepts the '--diff-program' option. # [helpers] # editor-cmd = editor (vi, emacs, notepad, etc.) # diff-cmd = diff_program (diff, gdiff, etc.) # diff3-cmd = diff3_program (diff3, gdiff3, etc.) # diff3-has-program-arg = [true | false] ### Section for configuring tunnel agents. [tunnels] ### Configure svn protocol tunnel schemes here. By default, only ### the 'ssh' scheme is defined. You can define other schemes to ### be used with 'svn+scheme://hostname/path' URLs. A scheme ### definition is simply a command, optionally prefixed by an ### environment variable name which can override the command if it ### is defined. The command (or environment variable) may contain ### arguments, using standard shell quoting for arguments with ### spaces. The command will be invoked as: ### <command> <hostname> svnserve -t ### (If the URL includes a username, then the hostname will be ### passed to the tunnel agent as <user>@<hostname>.) If the ### built-in ssh scheme were not predefined, it could be defined ### as: ssh = $SVN_SSH ssh ### If you wanted to define a new 'rsh' scheme, to be used with ### 'svn+rsh:' URLs, you could do so as follows: rsh = rsh ### Or, if you wanted to specify a full path and arguments: # rsh = /path/to/rsh -l myusername ### On Windows, if you are specifying a full path to a command, ### use a forward slash (/) or a paired backslash (\\) as the ### path separator. A single backslash will be treated as an ### escape for the following character. ### Section for configuring miscelleneous Subversion options. [miscellany] ### Set global-ignores to a set of whitespace-delimited globs ### which Subversion will ignore in its 'status' output. global-ignores = *.o *.lo *.la #*# .*~ *~ .#* .DS_Store" target .classpath .settings .project pmd-eclipse.log cobertura.ser *.iml velocity.log #*.class ### Set log-encoding to the default encoding for log messages # log-encoding = latin1 ### Set use-commit-times to make checkout/update/switch/revert ### put last-committed timestamps on every file touched. # use-commit-times = yes ### Set enable-auto-props to 'yes' to enable automatic properties ### for 'svn add' and 'svn import', it defaults to 'no'. ### Automatic properties are defined in the section 'auto-props'. enable-auto-props = yes ### Section for configuring automatic properties. ### The format of the entries is: ### file-name-pattern = propname[=value][;propname[=value]...] ### The file-name-pattern can contain wildcards (such as '*' and ### '?'). All entries which match will be applied to the file. ### Note that auto-props functionality must be enabled, which ### is typically done by setting the 'enable-auto-props' option. [auto-props] *.java = svn:eol-style=native;svn:keywords=Rev Date *.xml = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date *.xsl = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date *.xsd = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date *.xjb = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date *.wsdl = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date *.properties = svn:mime-type=text/plain;svn:eol-style=native;svn:keywords=Rev Date .checkstyle = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date .pmd = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date .ruleset = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date *.c = svn:eol-style=native;svn:keywords=Rev Date *.cpp = svn:eol-style=native;svn:keywords=Rev Date *.h = svn:eol-style=native;svn:keywords=Rev Date *.dsp = svn:eol-style=CRLF *.dsw = svn:eol-style=CRLF *.sh = svn:eol-style=native;svn:executable *.bat = svn:eol-style=native *.pl = svn:eol-style=native *.py = svn:eol-style=native *.cmd = svn:eol-style=native *.txt = svn:eol-style=native;svn:mime-type=text/plain *.cat = svn:eol-style=native;svn:mime-type=text/plain *.htm* = svn:eol-style=native;svn:mime-type=text/html;svn:keywords=Rev Date ChangeLog = svn:eol-style=native;svn:mime-type=text/plain README* = svn:eol-style=native;svn:mime-type=text/plain LICENSE* = svn:eol-style=native;svn:mime-type=text/plain NOTICE* = svn:eol-style=native;svn:mime-type=text/plain TODO* = svn:eol-style=native;svn:mime-type=text/plain KEYS* = svn:eol-style=native;svn:mime-type=text/plain INSTALL* = svn:eol-style=native;svn:mime-type=text/plain WHATSNEW* = svn:eol-style=native;svn:mime-type=text/plain NEWS* = svn:eol-style=native;svn:mime-type=text/plain COPYING = svn:eol-style=native;svn:mime-type=text/plain *.png = svn:mime-type=image/png *.jpg = svn:mime-type=image/jpeg *.gif = svn:mime-type=image/gif Makefile = svn:eol-style=native *.css = svn:eol-style=native *.js = svn:eol-style=native *.jsx = svn:eol-style=native #Tuscany/SCA work should also have: *.wsdd = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date *.scdl = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date *.componentType = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date *.fragment = svn:eol-style=native sca.subsystem = svn:eol-style=native;svn:mime-type=text/xml