summaryrefslogtreecommitdiffstats
path: root/java/etc/set_svn_properties.sh
blob: 92eab3fbd582adc26f6b3888f6ba315cd878fc0f (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# this script will set the proper svn properties on all the files in the tree
# It pretty much requires a gnu compatible xargs (for the -r flag).  Running
# on Linux is probably the best option


find . -name "*.java" | xargs -n 1 -r svn propset svn:eol-style native
find . -name "*.java" | xargs -n 1 -r  svn propset svn:keywords "Rev Date"


find . -name "*.xml" | xargs -n 1 -r  svn propset svn:mime-type text/xml
find . -name "*.xml" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "*.xml" | xargs -n 1 -r  svn propset svn:keywords "Rev Date"

find . -name "*.xsl" | xargs -n 1 -r  svn propset svn:mime-type text/xml
find . -name "*.xsl" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "*.xsl" | xargs -n 1 -r  svn propset svn:keywords "Rev Date"

find . -name "*.xsd" | xargs -n 1 -r  svn propset svn:mime-type text/xml
find . -name "*.xsd" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "*.xsd" | xargs -n 1 -r  svn propset svn:keywords "Rev Date"

find . -name "*.wsdl" | xargs -n 1 -r  svn propset svn:mime-type text/xml
find . -name "*.wsdl" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "*.wsdl" | xargs -n 1 -r  svn propset svn:keywords "Rev Date"

find . -name "*.properties" | xargs -n 1 -r  svn propset svn:mime-type text/plain
find . -name "*.properties" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "*.properties" | xargs -n 1 -r  svn propset svn:keywords "Rev Date"

find . -name "*.txt" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "*.txt" | xargs -n 1 -r  svn propset svn:mime-type text/plain

find . -name "*.htm*" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "*.htm*" | xargs -n 1 -r  svn propset svn:mime-type text/html
find . -name "*.htm*" | xargs -n 1 -r  svn propset svn:keywords "Rev Date"

find . -name "README*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "README*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:mime-type text/plain

find . -name "LICENSE*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "LICENSE*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:mime-type text/plain

find . -name "NOTICE*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "NOTICE*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:mime-type text/plain

find . -name "TODO*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "TODO*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:mime-type text/plain

find . -name "KEYS*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "KEYS*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:mime-type text/plain

find . -name "*.png" | xargs -n 1 -r  svn propset svn:mime-type image/png
find . -name "*.gif" | xargs -n 1 -r  svn propset svn:mime-type image/gif
find . -name "*.jpg" | xargs -n 1 -r  svn propset svn:mime-type image/jpeg
find . -name "*.jpeg" | xargs -n 1 -r  svn propset svn:mime-type image/jpeg


find . -name "*.scdl" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "*.scdl" | xargs -n 1 -r  svn propset svn:mime-type text/xml

find . -name "*.fragment" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "*.fragment" | xargs -n 1 -r  svn propset svn:mime-type text/xml

find . -name "*.componentType" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "*.componentType" | xargs -n 1 -r  svn propset svn:mime-type text/xml

find . -name "*.wsdd" | xargs -n 1 -r  svn propset svn:mime-type text/xml
find . -name "*.wsdd" | xargs -n 1 -r  svn propset svn:eol-style native

find . -name "sca.subsystem" | xargs -n 1 -r  svn propset svn:mime-type text/xml
find . -name "sca.subsystem" | xargs -n 1 -r  svn propset svn:eol-style native

find . -name "Tuscany-model.config" | xargs -n 1 -r  svn propset svn:mime-type text/xml
find . -name "Tuscany-model.config" | xargs -n 1 -r  svn propset svn:eol-style native


find . -name "*.cpp" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "*.cpp" | xargs -n 1 -r  svn propset svn:keywords "Rev Date"

find . -name "*.c" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "*.c" | xargs -n 1 -r  svn propset svn:keywords "Rev Date"

find . -name "*.h" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "*.h" | xargs -n 1 -r  svn propset svn:keywords "Rev Date"

find . -name "*.am" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "*.am" | xargs -n 1 -r  svn propset svn:keywords "Rev Date"

find . -name "ChangeLog*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "ChangeLog*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:mime-type text/plain

find . -name "*.sh" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "*.sh" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:mime-type text/plain
find . -name "*.sh" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:executable ""

find . -name "*.bat" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "*.bat" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:mime-type text/plain
find . -name "*.bat" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:executable ""

find . -name "*.cmd" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "*.cmd" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:mime-type text/plain
find . -name "*.cmd" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:executable ""

find . -name "INSTALL*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "INSTALL*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:mime-type text/plain

find . -name "COPYING*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "COPYING*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:mime-type text/plain

find . -name "NEWS*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "NEWS*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:mime-type text/plain

find . -name "DISCLAIMER*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "DISCLAIMER*" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:mime-type text/plain

find . -name "*.composite" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:eol-style native
find . -name "*.composite" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:mime-type text/xml
find . -name "*.composite" | grep -v ".svn" | xargs -n 1 -r  svn propset svn:keywords "Rev Date"