cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1210479 - /cxf/trunk/bin/set_svn_properties.sh
Date Mon, 05 Dec 2011 14:45:23 GMT
Author: dkulp
Date: Mon Dec  5 14:45:23 2011
New Revision: 1210479

URL: http://svn.apache.org/viewvc?rev=1210479&view=rev
Log:
Add another utility I use often

Added:
    cxf/trunk/bin/set_svn_properties.sh   (with props)

Added: cxf/trunk/bin/set_svn_properties.sh
URL: http://svn.apache.org/viewvc/cxf/trunk/bin/set_svn_properties.sh?rev=1210479&view=auto
==============================================================================
--- cxf/trunk/bin/set_svn_properties.sh (added)
+++ cxf/trunk/bin/set_svn_properties.sh Mon Dec  5 14:45:23 2011
@@ -0,0 +1,132 @@
+
+# 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
+
+
+echo ".pmd
+.checkstyle
+.ruleset
+target
+.settings
+.classpath
+.project
+.wtpmodules
+prj.el
+.jdee_classpath
+.jdee_sources
+velocity.log
+eclipse-classes
+*.ipr
+*.iml
+*.iws" > /tmp/svnignores
+
+find . -name "pom.xml" | xargs -n 1 dirname | xargs -r svn propset svn:ignore -F /tmp/svnignores
+
+find . -name "*.java" | grep -v ".svn" | xargs  -r svn propset svn:eol-style native
+#find . -name "*.java" | grep -v ".svn" | xargs  -r  svn propset svn:keywords "Rev Date"
+
+find . -name "*.xml" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/xml
+find . -name "*.xml" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+#find . -name "*.xml" | grep -v ".svn" | xargs  -r  svn propset svn:keywords "Rev Date"
+
+find . -name "*.xsl" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/xml
+find . -name "*.xsl" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+#find . -name "*.xsl" | grep -v ".svn" | xargs  -r  svn propset svn:keywords "Rev Date"
+
+find . -name "*.xsd" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/xml
+find . -name "*.xsd" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+#find . -name "*.xsd" | grep -v ".svn" | xargs  -r  svn propset svn:keywords "Rev Date"
+
+find . -name "*.xjb" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/xml
+find . -name "*.xjb" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+#find . -name "*.xjb" | grep -v ".svn" | xargs  -r  svn propset svn:keywords "Rev Date"
+
+find . -name "*.wsdl" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/xml
+find . -name "*.wsdl" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+#find . -name "*.wsdl" | grep -v ".svn" | xargs  -r  svn propset svn:keywords "Rev Date"
+
+find . -name "*.properties" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/plain
+find . -name "*.properties" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+#find . -name "*.properties" | grep -v ".svn" | xargs  -r  svn propset svn:keywords "Rev
Date"
+
+find . -name "*.txt" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+find . -name "*.txt" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/plain
+
+find . -name "*.htm*" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+find . -name "*.htm*" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/html
+#find . -name "*.htm*" | grep -v ".svn" | xargs  -r  svn propset svn:keywords "Rev Date"
+
+find . -name "README*" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+find . -name "README*" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/plain
+
+find . -name "LICENSE*" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+find . -name "LICENSE*" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/plain
+
+find . -name "NOTICE*" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+find . -name "NOTICE*" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/plain
+
+find . -name "TODO*" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+find . -name "TODO*" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/plain
+
+find . -name "KEYS*" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+find . -name "KEYS*" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/plain
+
+find . -name "*.png" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type image/png
+find . -name "*.gif" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type image/gif
+find . -name "*.jpg" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type image/jpeg
+find . -name "*.jpeg" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type image/jpeg
+
+
+find . -name "*.scdl" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+find . -name "*.scdl" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/xml
+
+find . -name "*.fragment" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+find . -name "*.fragment" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/xml
+
+find . -name "*.componentType" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+find . -name "*.componentType" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/xml
+
+find . -name "*.wsdd" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/xml
+find . -name "*.wsdd" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+
+find . -name "sca.subsystem" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/xml
+find . -name "sca.subsystem" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+find . -name "Tuscany-model.config" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type
text/xml
+find . -name "Tuscany-model.config" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style
native
+
+
+
+find . -name "*.cpp" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+#find . -name "*.cpp" | grep -v ".svn" | xargs  -r  svn propset svn:keywords "Rev Date"
+
+find . -name "*.c" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+#find . -name "*.c" | grep -v ".svn" | xargs  -r  svn propset svn:keywords "Rev Date"
+
+find . -name "*.h" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+#find . -name "*.h" | grep -v ".svn" | xargs  -r  svn propset svn:keywords "Rev Date"
+
+find . -name "*.am" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+#find . -name "*.am" | grep -v ".svn" | xargs  -r  svn propset svn:keywords "Rev Date"
+
+find . -name "ChangeLog*" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+find . -name "ChangeLog*" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/plain
+
+find . -name "*.sh" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+find . -name "*.sh" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/plain
+find . -name "*.sh" | grep -v ".svn" | xargs  -r  svn propset svn:executable ""
+
+find . -name "*.bat" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+find . -name "*.bat" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/plain
+
+find . -name "*.cmd" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+find . -name "*.cmd" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/plain
+find . -name "*.cmd" | grep -v ".svn" | xargs  -r  svn propset svn:executable ""
+
+find . -name "INSTALL*" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+find . -name "INSTALL*" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/plain
+find . -name "COPYING*" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+find . -name "COPYING*" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/plain
+find . -name "NEWS*" | grep -v ".svn" | xargs  -r  svn propset svn:eol-style native
+find . -name "NEWS*" | grep -v ".svn" | xargs  -r  svn propset svn:mime-type text/plain
+

Propchange: cxf/trunk/bin/set_svn_properties.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cxf/trunk/bin/set_svn_properties.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message