Dimitris Andreadis wrote:
I am changing the trunk copyright headers from "JBoss Inc"
to "Red Hat
Middleware LLC".
https://jira.jboss.org/jira/browse/JBAS-3916
As Ales points out that's my chance to score commit points ;)
If there are any problems with the eol characters let me know, as I see
not all files are marked as svn:eol native
Here are two little batch scripts I'm using to set the properties
correctly. You can edit mime types to satisfy the need.
It'll recurse to all dirs and setup the properties.
Regards
--
^(TM)
@echo off
if "%OS%" == "Windows_NT" setlocal
if "%1" == "" (
set SCRIPT_NAME=%~f0
) else (
set SCRIPT_NAME=%~f1
)
for /D %%i in (*) do (
cd %%i
svn propset svn:eol-style native *.java
svn propset svn:eol-style native *.properties
svn propset svn:eol-style native *.xml
svn propset svn:eol-style native *.xsd
svn propset svn:eol-style native *.xsl
svn propset svn:eol-style native *.dtd
svn propset svn:eol-style native *.tld
svn propset svn:eol-style native *.html
svn propset svn:eol-style native *.txt
svn propset svn:eol-style native *.jsp
svn propset svn:eol-style native *.jspx
svn propset svn:eol-style native *.jspf
svn propset svn:eol-style native *.sh
svn propset svn:eol-style native *.bat
svn propset svn:eol-style native *.svg
svn propset svn:mime-type image/gif *.gif
svn propset svn:mime-type image/jpeg *.jpg
svn propset svn:mime-type image/bmp *.bmp
svn propset svn:mime-type application/pdf *.pdf
svn propset svn:mime-type application/pdf *.pdf
svn propset svn:mime-type image/x-icon *.ico
call %SCRIPT_NAME% %SCRIPT_NAME%
cd ..
)
@echo off
if "%OS%" == "Windows_NT" setlocal
if "%1" == "" (
set SCRIPT_NAME=%~f0
) else (
set SCRIPT_NAME=%~f1
)
for /D %%i in (*) do (
cd %%i
svn propset svn:executable *.sh
svn propset svn:executable *.bat
svn propset svn:executable *.exe
call %SCRIPT_NAME% %SCRIPT_NAME%
cd ..
)