alors il y a plusieurs maniere de faire

mais si ton "contrôle de version" est subversion

tu peux aller voir là
http://svnbook.red-bean.com/en/1.1/ch07s02.html

pour la propriété svn:eol-style

pour 1 seul fichier tu pourras faire
$svn propset svn:eol-style native file.as

si tu veux gérer ca de manière automatique
il faudra aller modifier ton fichier de config subversion
http://svnbook.red-bean.com/en/1.1/ch07.html#svn-ch-7-sect-1.3.2

"The auto-props section controls the Subversion client's ability
to automatically set properties on files when they are added or
imported.
It contains any number of key-value pairs in the format PATTERN =
PROPNAME=PROPVALUE where PATTERN
is a file pattern that matches a set of filenames and the rest
of the line is the property and its value. Multiple matches on a
file will result in multiple propsets for that file; however, there
is no guarantee that auto-props will be applied in the order in which
they are listed in the config file, so you can't have one rule
“override” another.
You can find several examples of auto-props usage in the config file.
Lastly, don't forget to set enable-auto-props to yes in the miscellany
section if you want to enable auto-props."

sous Mac/Linux:
~/.subversion/config

sous Windows:
C:\Documents and Settings\{username}\Application Data\Subversion
\config

exemple:
----------------
[miscellany]
enable-auto-props = yes

[auto-props]
*.as = svn:eol-style=native
----------------



-- 
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes FCNG.
Pour envoyer un message à ce groupe, adressez un e-mail à [email protected].
Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse 
[email protected].
Pour plus d'options, consultez la page de ce groupe : 
http://groups.google.com/group/fcng?hl=fr

Répondre à