This wiki is archived and useful information is being migrated to the main bzflag.org website

Difference between revisions of "Auto-props"

From BZFlagWiki
Jump to: navigation, search
(Update MIME types for .bmp, .ico, and .ttf files. Add settings for .bat and .css files.)
(Add Subversion property specification for .svg extension.)
Line 44: Line 44:
  
 
*.xpm = svn:eol-style=native;svn:mime-type=image/x-xpm
 
*.xpm = svn:eol-style=native;svn:mime-type=image/x-xpm
 +
*.svg = svn:eol-style=native;svn:mime-type=image/svg+xml
 
*.bmp = svn:mime-type=image/bmp
 
*.bmp = svn:mime-type=image/bmp
 
*.png = svn:mime-type=image/png
 
*.png = svn:mime-type=image/png

Revision as of 14:34, 3 June 2009

Developers should make sure their Subversion auto-props are set correctly before committing to SVN. This helps preserve the correct line endings across platforms. This is the "standard" auto-props section we are using (you may of course set your own if you prefer). You'll need to edit your config file(s), which varies depending on platform and Subversion client.

For UNIX-like platforms, edit your ~/.subversion/config file to set the auto-props. For Windows Vista, the path is C:\Users\YOUR_USERNAME\AppData\Roaming\Subversion\config And for Windows XP, the path is C:\Documents and Settings\YOUR_USERNAME\Application Data\Subversion\config Also, please be sure that you uncomment the enable-auto-props option and set it to yes.

### Section for configuring automatic properties.
[auto-props]
### 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.
*.c = svn:eol-style=native
*.cpp = svn:eol-style=native
*.cxx = svn:eol-style=native
*.h = svn:eol-style=native
*.pl = svn:eol-style=native
*.py = svn:eol-style=native
*.php = svn:eol-style=native

*.po = svn:eol-style=native
*.am = svn:eol-style=native
*.ac = svn:eol-style=native
*.in = svn:eol-style=native
*.m4 = svn:eol-style=native

*.dsp = svn:eol-style=CRLF
*.dsw = svn:eol-style=CRLF
*.sln = svn:eol-style=CRLF
*.vcproj = svn:eol-style=CRLF
*.nsi = svn:eol-style=CRLF
*.manifest = svn:eol-style=CRLF

*.sh = svn:eol-style=native;svn:executable
*.bat = svn:eol-style=native;svn:mime-type=text/plain

*.txt = svn:eol-style=native;svn:mime-type=text/plain
README = svn:eol-style=native;svn:mime-type=text/plain
*.html = svn:eol-style=native;svn:mime-type=text/html
*.css = svn:eol-style=native;svn:mime-type=text/css
*.xml = svn:eol-style=native;svn:mime-type=text/xml
*.bzw = svn:eol-style=native

*.xpm = svn:eol-style=native;svn:mime-type=image/x-xpm
*.svg = svn:eol-style=native;svn:mime-type=image/svg+xml
*.bmp = svn:mime-type=image/bmp
*.png = svn:mime-type=image/png
*.jpg = svn:mime-type=image/jpeg
*.ogg = svn:mime-type=application/ogg
*.wav = svn:mime-type=audio/x-wav
*.ttf = svn:mime-type=application/octet-stream
*.ico = svn:mime-type=application/octet-stream
*.rgb = svn:mime-type=image/x-rgb