From fbff89064e0896cb8090f4c966f4c81661b4591c Mon Sep 17 00:00:00 2001
From: Chad Metcalf <chad@cloudera.com>
Date: Fri, 22 Jan 2010 14:30:58 -0800
Subject: [PATCH] HADOOP-6505: sed in build.xml fails.

---
 build.xml |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/build.xml b/build.xml
index 57655bd..f98d052 100644
--- a/build.xml
+++ b/build.xml
@@ -62,9 +62,10 @@
   <property name="build.anttasks" value="${build.dir}/ant"/>
   <property name="build.librecordio" value="${build.dir}/librecordio"/>
   <!-- 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}"/>
-- 
1.6.0.4

