Author: cdouglas
Date: Sat Feb 13 12:16:52 2010
New Revision: 909801
URL: http://svn.apache.org/viewvc?rev=909801&view=rev
Log:
HADOOP-6505. Use tr rather than sed to effect literal substitution in the
build script. Contributed by Allen Wittenauer
Modified:
hadoop/common/trunk/CHANGES.txt
hadoop/common/trunk/build.xml
Modified: hadoop/common/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=909801&r1=909800&r2=909801&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Sat Feb 13 12:16:52 2010
@@ -186,6 +186,9 @@
HADOOP-6522. Fix decoding of codepoint zero in UTF8. (cutting)
+ HADOOP-6505. Use tr rather than sed to effect literal substitution in the
+ build script. (Allen Wittenauer via cdouglas)
+
Release 0.21.0 - Unreleased
INCOMPATIBLE CHANGES
Modified: hadoop/common/trunk/build.xml
URL:
http://svn.apache.org/viewvc/hadoop/common/trunk/build.xml?rev=909801&r1=909800&r2=909801&view=diff
==============================================================================
--- hadoop/common/trunk/build.xml (original)
+++ hadoop/common/trunk/build.xml Sat Feb 13 12:16:52 2010
@@ -50,9 +50,10 @@
<property name="build.webapps" value="${build.dir}/webapps"/>
<!-- convert spaces to _ so that mac os doesn't break things -->
- <exec executable="sed" inputstring="${os.name}"
+ <exec executable="tr" inputstring="${os.name}"
outputproperty="nonspace.os">
- <arg value="s/ /_/g"/>
+ <arg value="[:space:]"/>
+ <arg value="_"/>
</exec>
<property name="build.platform"
value="${nonspace.os}-${os.arch}-${sun.arch.data.model}"/>