Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Merge branch 'revert_keywords'
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/incubator/shindig/trunk@654012 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
sgala committed May 7, 2008
1 parent 5703d01 commit 9916caf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 21 deletions.
12 changes: 2 additions & 10 deletions etc/set_svn_properties.sh
Expand Up @@ -2,48 +2,40 @@
# 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
# Note: use the folling line if you want to remove svn:keywords
for ext in java php xml xsl xsd wsdl properties txt htm* css js ; do find . -path '*/.svn' -prune -o -name "*.$ext" -print0 | xargs -0 -r svn propdel svn:keywords ; done


find . -path '*/.svn' -prune -o -name "*.java" -print0 | xargs -0 -r svn propset svn:eol-style native
find . -path '*/.svn' -prune -o -name "*.java" -print0 | xargs -0 -r svn propset svn:keywords "Author Date Id Revision Rev"

find . -path '*/.svn' -prune -o -name "*.php" -print0 | xargs -0 -r svn propset svn:eol-style native
find . -path '*/.svn' -prune -o -name "*.php" -print0 | xargs -0 -r svn propset svn:keywords "Author Date Id Revision Rev"

find . -path '*/.svn' -prune -o -name "*.xml" -print0 | xargs -0 -r svn propset svn:mime-type text/xml
find . -path '*/.svn' -prune -o -name "*.xml" -print0 | xargs -0 -r svn propset svn:eol-style native
find . -path '*/.svn' -prune -o -name "*.xml" -print0 | xargs -0 -r svn propset svn:keywords "Author Date Id Revision Rev"

find . -path '*/.svn' -prune -o -name "*.xsl" -print0 | xargs -0 -r svn propset svn:mime-type text/xml
find . -path '*/.svn' -prune -o -name "*.xsl" -print0 | xargs -0 -r svn propset svn:eol-style native
find . -path '*/.svn' -prune -o -name "*.xsl" -print0 | xargs -0 -r svn propset svn:keywords "Author Date Id Revision Rev"

find . -path '*/.svn' -prune -o -name "*.xsd" -print0 | xargs -0 -r svn propset svn:mime-type text/xml
find . -path '*/.svn' -prune -o -name "*.xsd" -print0 | xargs -0 -r svn propset svn:eol-style native
find . -path '*/.svn' -prune -o -name "*.xsd" -print0 | xargs -0 -r svn propset svn:keywords "Author Date Id Revision Rev"

find . -path '*/.svn' -prune -o -name "*.wsdl" -print0 | xargs -0 -r svn propset svn:mime-type text/xml
find . -path '*/.svn' -prune -o -name "*.wsdl" -print0 | xargs -0 -r svn propset svn:eol-style native
find . -path '*/.svn' -prune -o -name "*.wsdl" -print0 | xargs -0 -r svn propset svn:keywords "Author Date Id Revision Rev"

find . -path '*/.svn' -prune -o -name "*.properties" -print0 | xargs -0 -r svn propset svn:mime-type text/plain
find . -path '*/.svn' -prune -o -name "*.properties" -print0 | xargs -0 -r svn propset svn:eol-style native
find . -path '*/.svn' -prune -o -name "*.properties" -print0 | xargs -0 -r svn propset svn:keywords "Author Date Id Revision Rev"

find . -path '*/.svn' -prune -o -name "*.txt" -print0 | xargs -0 -r svn propset svn:eol-style native
find . -path '*/.svn' -prune -o -name "*.txt" -print0 | xargs -0 -r svn propset svn:mime-type text/plain

find . -path '*/.svn' -prune -o -name "*.htm*" -print0 | xargs -0 -r svn propset svn:eol-style native
find . -path '*/.svn' -prune -o -name "*.htm*" -print0 | xargs -0 -r svn propset svn:mime-type text/html
find . -path '*/.svn' -prune -o -name "*.htm*" -print0 | xargs -0 -r svn propset svn:keywords "Author Date Id Revision Rev"

find . -path '*/.svn' -prune -o -name "*.css" -print0 | xargs -0 -r svn propset svn:eol-style native
find . -path '*/.svn' -prune -o -name "*.css" -print0 | xargs -0 -r svn propset svn:mime-type text/css
find . -path '*/.svn' -prune -o -name "*.css" -print0 | xargs -0 -r svn propset svn:keywords "Author Date Id Revision Rev"

find . -path '*/.svn' -prune -o -name "*.js" -print0 | xargs -0 -r svn propset svn:eol-style native
find . -path '*/.svn' -prune -o -name "*.js" -print0 | xargs -0 -r svn propset svn:mime-type text/javascript
find . -path '*/.svn' -prune -o -name "*.js" -print | grep -v jquery | xargs -r svn propset svn:keywords "Author Date Id Revision Rev"

find . -path '*/.svn' -prune -o -name "README*" -print0 | xargs -0 -r svn propset svn:eol-style native
find . -path '*/.svn' -prune -o -name "README*" -print0 | xargs -0 -r svn propset svn:mime-type text/plain
Expand Down
23 changes: 12 additions & 11 deletions etc/svn-props
Expand Up @@ -31,28 +31,29 @@ COPYING* = svn:eol-style=native;svn:mime-type=text/plain
DISCLAIMER* = svn:eol-style=native;svn:mime-type=text/plain
Makefile = svn:eol-style=native;svn:mime-type=text/plain
ChangeLog = svn:eol-style=native;svn:mime-type=text/plain
*.c = svn:eol-style=native;svn:keywords=Rev Date
*.cpp = svn:eol-style=native;svn:keywords=Rev Date
*.h = svn:eol-style=native;svn:keywords=Rev Date
*.c = svn:eol-style=native
*.cpp = svn:eol-style=native
*.h = svn:eol-style=native
*.dsp = svn:eol-style=CRLF
*.dsw = svn:eol-style=CRLF
*.sh = svn:eol-style=native;svn:executable
*.png = svn:mime-type=image/png
*.jpg = svn:mime-type=image/jpeg
*.gif = svn:mime-type=image/gif
*.java = svn:eol-style=native;svn:keywords=Rev Date
*.xml = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date
*.xsl = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date
*.xsd = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date
*.wsdl = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date
*.properties = svn:mime-type=text/plain;svn:eol-style=native;svn:keywords=Rev Date
*.java = svn:eol-style=native
*.php = svn:eol-style=native
*.xml = svn:mime-type=text/xml;svn:eol-style=native
*.xsl = svn:mime-type=text/xml;svn:eol-style=native
*.xsd = svn:mime-type=text/xml;svn:eol-style=native
*.wsdl = svn:mime-type=text/xml;svn:eol-style=native
*.properties = svn:mime-type=text/plain;svn:eol-style=native
*.txt = svn:eol-style=native;svn:mime-type=text/plain
*.htm* = svn:eol-style=native;svn:mime-type=text/html;svn:keywords=Rev Date
*.htm* = svn:eol-style=native;svn:mime-type=text/html
*.bat = svn:eol-style=native
*.pl = svn:eol-style=native
*.py = svn:eol-style=native
*.cmd = svn:eol-style=native
*.css = svn:eol-style=native
*.js = svn:eol-style=native
*.wsdd = svn:mime-type=text/xml;svn:eol-style=native;svn:keywords=Rev Date
*.wsdd = svn:mime-type=text/xml;svn:eol-style=native
*.fragment = svn:eol-style=native

0 comments on commit 9916caf

Please sign in to comment.