svn commit: r17916 - 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-19 13:45:12-0800 New Revision: 17916 Modified: trunk/tools/bin/fix-properties.sh Log: Added handling of failing svn command. By running them on one file each, they are independent. Modified: trunk/tools/bin/fix-properties.sh Url: http://argouml.tigris.org/source/browse/argouml/trunk/tools/bin/fix-properties.sh?view=diff&pathrev=17916&r1=17915&r2=17916 ============================================================================== --- trunk/tools/bin/fix-properties.sh (original) +++ trunk/tools/bin/fix-properties.sh 2010-01-19 13:45:12-0800 @@ -1,19 +1,22 @@ #!/bin/sh +# add max-args 1 to xargs if it can go wrong +CANGOWRONG="--max-args=1" + svn ls -R > ls-R.tmp egrep '\.(java|xml|properties|txt|html)$' < ls-R.tmp | - xargs -r -n 1 svn propdel svn:executable + xargs -r $CANGOWRONG 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 + xargs -r $CANGOWRONG svn propset svn:eol-style native # Scripts egrep '\.(bat)$' < ls-R.tmp | - xargs -r svn propset svn:eol-style 'CRLF' + xargs -r $CANGOWRONG svn propset svn:eol-style 'CRLF' egrep '\.(sh)$' < ls-R.tmp | - xargs -r svn propset svn:eol-style 'LF' + xargs -r $CANGOWRONG svn propset svn:eol-style 'LF' egrep '\.(bat|sh)$' < ls-R.tmp | xargs -r svn propset svn:executable '*' ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2440462 To unsubscribe from this discussion, e-mail: [[email protected]].