Author: thejas
Date: Tue Sep 17 20:31:45 2013
New Revision: 1524212
URL: http://svn.apache.org/r1524212
Log:
HIVE-5079 : Make Hive compile under Windows (Daniel Dai via Ashutosh Chauhan)
Modified:
hive/branches/branch-0.12/common/src/scripts/saveVersion.sh
Modified: hive/branches/branch-0.12/common/src/scripts/saveVersion.sh
URL:
http://svn.apache.org/viewvc/hive/branches/branch-0.12/common/src/scripts/saveVersion.sh?rev=1524212&r1=1524211&r2=1524212&view=diff
==============================================================================
--- hive/branches/branch-0.12/common/src/scripts/saveVersion.sh (original)
+++ hive/branches/branch-0.12/common/src/scripts/saveVersion.sh Tue Sep 17
20:31:45 2013
@@ -59,6 +59,14 @@ fi
srcChecksum=`find ../ -name '*.java' | grep -v generated-sources | LC_ALL=C
sort | xargs md5sum | md5sum | cut -d ' ' -f 1`
mkdir -p $src_dir/gen/org/apache/hive/common
+
+# In Windows, all the following string ends with \r, need to get rid of them
+branch=`echo $branch | tr -d '\r'`
+user=`echo $user | tr -d '\r'`
+date=`echo $date | tr -d '\r'`
+url=`echo $url | tr -d '\r'`
+srcChecksum=`echo $srcChecksum | tr -d '\r'`
+
cat << EOF | \
sed -e "s/VERSION/$version/" -e "s/USER/$user/" -e "s/DATE/$date/" \
-e "s|URL|$url|" -e "s/REV/$revision/" \