[jboss-cvs] JBossAS SVN: r112062 - branches/JBPAPP_5_1/main/src/bin.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Aug 15 18:17:56 EDT 2011


Author: jiwils
Date: 2011-08-15 18:17:56 -0400 (Mon, 15 Aug 2011)
New Revision: 112062

Added:
   branches/JBPAPP_5_1/main/src/bin/convert-dos2unix.sh
Log:
Script for JBPAPP-7013: Convert Windows format files to UNIX format.

Added: branches/JBPAPP_5_1/main/src/bin/convert-dos2unix.sh
===================================================================
--- branches/JBPAPP_5_1/main/src/bin/convert-dos2unix.sh	                        (rev 0)
+++ branches/JBPAPP_5_1/main/src/bin/convert-dos2unix.sh	2011-08-15 22:17:56 UTC (rev 112062)
@@ -0,0 +1,21 @@
+#!/bin/sh
+### ====================================================================== ###
+##  convert-dos2unix.sh                                                     ##
+##  A *.xml/*.properties DOS to UNIX file conversion script.                ##
+##                                                                          ##
+##  This script converts *.xml and *.properties files contained in the      ## 
+##  JBoss EAP distribution to UNIX format using what should be universally  ##
+##  available command line utilities.                                       ##
+### ====================================================================== ###
+
+# This script lives in jboss-eap-<version>/jboss-as/bin, so we set the root
+# directory for the changes accordingly.  This can be changed as necessary.
+EAP_ROOT=../..
+
+# Convert *.xml files.
+for i in `find $EAP_ROOT -name \*.xml`; do echo $i;sed -i 's/
+$//' $i; done
+
+# Convert *.properties files.
+for i in `find $EAP_ROOT -name \*.properties`; do echo $i;sed -i 's/
+$//' $i; done


Property changes on: branches/JBPAPP_5_1/main/src/bin/convert-dos2unix.sh
___________________________________________________________________
Added: svn:executable
   + *



More information about the jboss-cvs-commits mailing list