SHINDIG-1041 by Pan Jie - Adds support for OAuth params to the OAuthFetcher
[shindig.git] / etc / set_svn_properties.sh
blob47b28e58c0ffeadaa9938eb1d86ca8b0ad021ea7
1 #!/bin/bash
3 # Licensed to the Apache Software Foundation (ASF) under one
4 # or more contributor license agreements. See the NOTICE file
5 # distributed with this work for additional information
6 # regarding copyright ownership. The ASF licenses this file
7 # to you under the Apache License, Version 2.0 (the
8 # "License"); you may not use this file except in compliance
9 # with the License. You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing,
14 # software distributed under the License is distributed on an
15 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 # KIND, either express or implied. See the License for the
17 # specific language governing permissions and limitations
18 # under the License.
20 # This script will set the proper svn properties on all the files in the tree
21 # It pretty much requires a gnu compatible xargs (for the -r flag). Running
22 # on Linux is probably the best option or on Windows with cygwin.
24 # Note: use the following line if you want to remove svn:keywords
25 #for ext in java php xml xsl xsd wsdl properties txt htm* css js ; do find . -path '*/.svn' -prune -o -name "*.$ext" -print0 | grep -v '.svn' | xargs -0 -r svn propdel svn:keywords ; done
27 # Note: use the following line to automatically apply svn ignore
28 #svn propset svn:ignore -F etc/svn-ignores .
29 #svn propset svn:ignore -F etc/svn-ignores features
30 #svn propset svn:ignore -F etc/svn-ignores java
31 #svn propset svn:ignore -F etc/svn-ignores java/common
32 #svn propset svn:ignore -F etc/svn-ignores java/gadgets
33 #svn propset svn:ignore -F etc/svn-ignores java/social-api
34 #svn propset svn:ignore -F etc/svn-ignores java/server
35 #svn propset svn:ignore -F etc/svn-ignores java/samples
37 # Language files
38 find . -name "*.java" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
40 find . -name "*.php" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
42 find . -name "*.properties" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
43 find . -name "*.properties" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/plain
45 # XML files
46 find . -name "*.xml" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
47 find . -name "*.xml" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/xml
49 find . -name "*.xsl" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
50 find . -name "*.xsl" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/xml
52 find . -name "*.xsd" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
53 find . -name "*.xsd" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/xml
55 find . -name "*.wsdl" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
56 find . -name "*.wsdl" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/xml
58 find . -name "*.wsdd" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
59 find . -name "*.wsdd" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/xml
61 # HTML files
62 find . -name "*.htm*" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
63 find . -name "*.htm*" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/html
65 find . -name "*.css" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
66 find . -name "*.css" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/css
68 find . -name "*.js" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
69 find . -name "*.js" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/javascript
71 # Image files
72 find . -name "*.png" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type image/png
73 find . -name "*.gif" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type image/gif
74 find . -name "*.jpg" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type image/jpeg
75 find . -name "*.jpeg" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type image/jpeg
77 # Executable files
78 find . -name "*.sh" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
79 find . -name "*.sh" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/plain
80 find . -name "*.sh" | grep -v '.svn' | xargs -n 1 svn propset svn:executable ""
82 find . -name "*.bat" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
83 find . -name "*.bat" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/plain
84 find . -name "*.bat" | grep -v '.svn' | xargs -n 1 svn propset svn:executable ""
86 find . -name "*.cmd" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
87 find . -name "*.cmd" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/plain
88 find . -name "*.cmd" | grep -v '.svn' | xargs -n 1 svn propset svn:executable ""
90 # Maven site files
91 find . -name "*.apt" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
92 find . -name "*.apt" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/plain
94 find . -name "*.fml" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
95 find . -name "*.fml" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/xml
97 find . -name "*.xdoc" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
98 find . -name "*.xdoc" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/xml
100 # Other files
101 find . -name "*.txt" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
102 find . -name "*.txt" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/plain
104 find . -name "README*" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
105 find . -name "README*" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/plain
107 find . -name "LICENSE*" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
108 find . -name "LICENSE*" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/plain
110 find . -name "NOTICE*" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
111 find . -name "NOTICE*" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/plain
113 find . -name "KEYS*" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
114 find . -name "KEYS*" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/plain
116 find . -name "INSTALL*" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
117 find . -name "INSTALL*" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/plain
119 find . -name "DISCLAIMER*" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
120 find . -name "DISCLAIMER*" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/plain
122 find . -name "COMMITTERS*" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
123 find . -name "COMMITTERS*" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/plain
125 find . -name "BUILD-JAVA*" | grep -v '.svn' | xargs -n 1 svn propset svn:eol-style native
126 find . -name "BUILD-JAVA*" | grep -v '.svn' | xargs -n 1 svn propset svn:mime-type text/plain