Bug #538
End of Line style is incorrect in SVN.
Status: | Closed | Start date: | 05/11/2009 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | sfb | % Done: | 100% |
|
Category: | Build | |||
Target version: | Version 0.7.0 | Estimated time: | 1.50 hour |
Description
The eol-style for SVN should be set to "native" for all text/source files. This will prevent future CR->CRLF corruptions when multiple platforms and/or editors are involved in working on the source.
The command to accomplish this is:
svn propset eol-sytle native filename.txt
History
#1 Updated by sfb about 6 years ago
Here is an example script that may accomplish this. We probably want additional file extensions in there such as:
- htm
- html
- txt
- cfg
- php
#! /bin/sh for i in `find . -name ‘*.cpp’ \ -or -name ‘*.c’ -or -name ‘*.h’` do unix2dos $i svn propset svn:eol-style native $i done
#2 Updated by sfb about 6 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset r1563.
#3 Updated by sfb about 6 years ago
- Status changed from Resolved to Closed
- Estimated time set to 1.50
Using a variation of the script I posted (I added some more file extensions) I updated the property and filtered the files to fix any lingerly CR->CRLF issues.
#4 Updated by kervala almost 5 years ago
- Project changed from NeL to Ryzom
- Category changed from Build to Build
- Target version deleted (
Version 0.7.0)
#5 Updated by kervala almost 5 years ago
- Target version set to Version 0.7.0