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

Auto-props

From BZFlagWiki
Jump to: navigation, search

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. An example subversion config files is shown in following:

### 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;svn:mime-type=text/plain
*.cpp = svn:eol-style=native;svn:mime-type=text/plain
*.cxx = svn:eol-style=native;svn:mime-type=text/plain
*.def = svn:eol-style=native;svn:mime-type=text/plain
*.h = svn:eol-style=native;svn:mime-type=text/plain
*.pl = svn:eol-style=native;svn:mime-type=text/plain
*.py = svn:eol-style=native;svn:mime-type=text/plain
*.php = svn:eol-style=native;svn:mime-type=text/plain

*.po = svn:eol-style=native;svn:mime-type=text/plain
*.am = svn:eol-style=native;svn:mime-type=text/plain
*.ac = svn:eol-style=native;svn:mime-type=text/plain
*.in = svn:eol-style=native;svn:mime-type=text/plain
*.m4 = svn:eol-style=native;svn:mime-type=text/plain

*.dsp = svn:eol-style=CRLF;svn:mime-type=text/plain
*.dsw = svn:eol-style=CRLF;svn:mime-type=text/plain
*.sln = svn:eol-style=CRLF;svn:mime-type=text/xml
*.vcproj = svn:eol-style=CRLF;svn:mime-type=text/xml
*.nsi = svn:eol-style=CRLF;svn:mime-type=text/plain
*.manifest = svn:eol-style=CRLF;svn:mime-type=text/xml

*.sh = svn:eol-style=native;svn:mime-type=text/plain;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