You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by li...@apache.org on 2008/02/18 02:58:32 UTC

svn commit: r628595 - in /incubator/shindig/trunk/etc: ./ set_svn_properties.sh svn-ignores svn-props

Author: lindner
Date: Sun Feb 17 17:58:30 2008
New Revision: 628595

URL: http://svn.apache.org/viewvc?rev=628595&view=rev
Log:
Patch from SHINDIG-78, submitted by Luciano Resende, includes
script and config files to tidy up our svn repo

Added:
    incubator/shindig/trunk/etc/
    incubator/shindig/trunk/etc/set_svn_properties.sh
    incubator/shindig/trunk/etc/svn-ignores
    incubator/shindig/trunk/etc/svn-props

Added: incubator/shindig/trunk/etc/set_svn_properties.sh
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/etc/set_svn_properties.sh?rev=628595&view=auto
==============================================================================
--- incubator/shindig/trunk/etc/set_svn_properties.sh (added)
+++ incubator/shindig/trunk/etc/set_svn_properties.sh Sun Feb 17 17:58:30 2008
@@ -0,0 +1,89 @@
+
+# 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 "*.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 "*.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 "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

Added: incubator/shindig/trunk/etc/svn-ignores
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/etc/svn-ignores?rev=628595&view=auto
==============================================================================
--- incubator/shindig/trunk/etc/svn-ignores (added)
+++ incubator/shindig/trunk/etc/svn-ignores Sun Feb 17 17:58:30 2008
@@ -0,0 +1,19 @@
+target
+work
+dojo
+*.iws
+*.ipr
+*.iml
+derby.log
+maven.log
+build.xml
+build-dependency.xml
+velocity.log*
+junit*.properties
+surefire*.properties
+.project
+.classpath
+.settings
+.deployables
+.wtpmodules
+.externalToolBuilders

Added: incubator/shindig/trunk/etc/svn-props
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/etc/svn-props?rev=628595&view=auto
==============================================================================
--- incubator/shindig/trunk/etc/svn-props (added)
+++ incubator/shindig/trunk/etc/svn-props Sun Feb 17 17:58:30 2008
@@ -0,0 +1,58 @@
+# Add this stuff at bottom of your local file ~/.subversion/config
+#Note: for Windows this is normally found at
+# C:\Documents and Settings\{username}\Application Data\Subversion\config
+
+[miscellany]
+enable-auto-props = yes
+
+# Note: you may wish to add svn:keywords as well, depending on your project requirements
+# E.g. svn:keywords=Date Author Id Revision HeadURL
+
+# Do not default any files to svn:executable=*.
+# This should only be done on an individual basis as required.
+
+### Section for configuring automatic properties.
+### The format of the entries is:
+###   file-name-pattern = propname[=value][;propname[=value]...]
+### The file-name-pattern can contain wildcards (such as '*' and
+### '?').  All entries which match will be applied to the file.
+### Note that auto-props functionality must be enabled, which
+### is typically done by setting the 'enable-auto-props' option.
+[auto-props]
+INSTALL* = svn:eol-style=native;svn:mime-type=text/plain
+KEYS* = svn:eol-style=native;svn:mime-type=text/plain
+README* = svn:eol-style=native;svn:mime-type=text/plain
+LICENSE* = svn:eol-style=native;svn:mime-type=text/plain
+NOTICE* = svn:eol-style=native;svn:mime-type=text/plain
+TODO* = svn:eol-style=native;svn:mime-type=text/plain
+WHATSNEW* = svn:eol-style=native;svn:mime-type=text/plain
+NEWS* = svn:eol-style=native;svn:mime-type=text/plain
+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
+*.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
+*.txt = svn:eol-style=native;svn:mime-type=text/plain
+*.htm* = svn:eol-style=native;svn:mime-type=text/html;svn:keywords=Rev Date
+*.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
+*.fragment = svn:eol-style=native