svn commit: r17899 - trunk/tools/bin/fix-properties.sh

Linus Tolke <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: linus
Date: 2010-01-12 13:41:30-0800
New Revision: 17899

Modified:
   trunk/tools/bin/fix-properties.sh

Log:
Added EPL License header.

Modified: trunk/tools/bin/fix-properties.sh
Url: http://argouml.tigris.org/source/browse/argouml/trunk/tools/bin/fix-properties.sh?view=diff&pathrev=17899&r1=17898&r2=17899
==============================================================================
--- trunk/tools/bin/fix-properties.sh	(original)
+++ trunk/tools/bin/fix-properties.sh	2010-01-12 13:41:30-0800
@@ -1,20 +1,20 @@
 #!/bin/sh
 
-find . -type f \( -name \*.java -o -name \*.xml -o -name \*.txt \) -print |
-xargs -r svn propset svn:eol-style native
+svn ls -R > ls-R.tmp
 
-find . -type f \( -name \*.java -o -name \*.xml -o -name \*.properties -o -name \*.txt -o -name \*.html \) -print |
-xargs -r svn propset svn:keywords 'Author Date Id Revision'
-
-find . -type f \( -name \*.java -o -name \*.xml -o -name \*.properties -o -name \*.txt \) -print |
-xargs -r svn propdel svn:executable
+egrep '\.(java|xml|properties|txt|html)$' < ls-R.tmp | 
+  xargs -r -n 1 svn propdel svn:executable
+egrep '\.(java|xml|properties|txt|html)$' < ls-R.tmp | 
+  xargs -r svn propset svn:keywords 'Author Date Id Revision'
+egrep '\.(java|xml|txt)$' < ls-R.tmp | 
+  xargs -r svn propset svn:eol-style native
 
 # Scripts
-find . -type f -name \*.bat -print |
-xargs -r svn propset svn:eol-style 'CRLF'
-
-find . -type f -name \*.sh -print |
-xargs -r svn propset svn:eol-style 'LF'
+egrep '\.(bat)$' < ls-R.tmp | 
+  xargs -r svn propset svn:eol-style 'CRLF'
+egrep '\.(sh)$' < ls-R.tmp | 
+  xargs -r svn propset svn:eol-style 'LF'
+egrep '\.(bat|sh)$' < ls-R.tmp | 
+  xargs -r svn propset svn:executable '*'
 
-find . -type f \( -name \*.sh -o -name \*.bat \) -print |
-xargs -r svn propset svn:executable '*'
+rm ls-R.tmp

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2436867

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.