hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cdoug...@apache.org
Subject svn commit: r909791 - in /hadoop/mapreduce/trunk: CHANGES.txt build.xml
Date Sat, 13 Feb 2010 11:09:39 GMT
Author: cdouglas
Date: Sat Feb 13 11:09:38 2010
New Revision: 909791

URL: http://svn.apache.org/viewvc?rev=909791&view=rev
Log:
MAPREDUCE-1400. Use tr rather than sed to effect literal substitution in
the build script. Contributed by Allen Wittenauer

Modified:
    hadoop/mapreduce/trunk/CHANGES.txt
    hadoop/mapreduce/trunk/build.xml

Modified: hadoop/mapreduce/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/CHANGES.txt?rev=909791&r1=909790&r2=909791&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/CHANGES.txt (original)
+++ hadoop/mapreduce/trunk/CHANGES.txt Sat Feb 13 11:09:38 2010
@@ -332,6 +332,9 @@
     MAPREDUCE-1474. Update forrest documentation for Hadoop Archives. (Mahadev
     Konar via cdouglas)
 
+    MAPREDUCE-1400. 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/mapreduce/trunk/build.xml
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/trunk/build.xml?rev=909791&r1=909790&r2=909791&view=diff
==============================================================================
--- hadoop/mapreduce/trunk/build.xml (original)
+++ hadoop/mapreduce/trunk/build.xml Sat Feb 13 11:09:38 2010
@@ -60,10 +60,12 @@
   <property name="build.webapps" value="${build.dir}/webapps"/>
   <property name="build.examples" value="${build.dir}/examples"/>
   <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}"/>



Mime
View raw message