[r16068]: rvmroot / branches / RVM-127-JMX / bin / normalizeSVNProperties.sh Maximize Restore History

Download this file

normalizeSVNProperties.sh    31 lines (24 with data), 945 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
#
# This file is part of the Jikes RVM project (http://jikesrvm.org).
#
# This file is licensed to You under the Common Public License (CPL);
# You may not use this file except in compliance with the License. You
# may obtain a copy of the License at
#
# http://www.opensource.org/licenses/cpl1.0.php
#
# See the COPYRIGHT.txt file distributed with this work for information
# regarding copyright ownership.
#
# This is really an administrative script used by the core team to maintain
# the svn repository. It's job is to normalize the svn properties on files
# based on their extensions.
#
# Source code files should have the following properties set:
# svn:eol-style : native
# svn:mime-type : text/plain
for extension in .java .c .h .C; do
find . -name "*$extension" -print | xargs svn propset svn:eol-style native
find . -name "*$extension" -print | xargs svn propset svn:mime-type text/plain
done