HADOOP-6505. Use tr rather than sed to effect literal substitution in the

build script. Contributed by Allen Wittenauer


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@909801 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Christopher Douglas 2010-02-13 12:16:52 +00:00
parent 139b2ea1a2
commit e0a0e6b9f5
2 changed files with 6 additions and 2 deletions

View File

@ -186,6 +186,9 @@ Trunk (unreleased changes)
HADOOP-6522. Fix decoding of codepoint zero in UTF8. (cutting) 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 Release 0.21.0 - Unreleased
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -50,9 +50,10 @@
<property name="build.webapps" value="${build.dir}/webapps"/> <property name="build.webapps" value="${build.dir}/webapps"/>
<!-- convert spaces to _ so that mac os doesn't break things --> <!-- 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"> outputproperty="nonspace.os">
<arg value="s/ /_/g"/> <arg value="[:space:]"/>
<arg value="_"/>
</exec> </exec>
<property name="build.platform" <property name="build.platform"
value="${nonspace.os}-${os.arch}-${sun.arch.data.model}"/> value="${nonspace.os}-${os.arch}-${sun.arch.data.model}"/>