Repository: bigtop
Updated Branches:
  refs/heads/master 76c25eaa8 -> b4a7a7a47


BIGTOP-1277. Remove Windows files from unix packaging


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/b4a7a7a4
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/b4a7a7a4
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/b4a7a7a4

Branch: refs/heads/master
Commit: b4a7a7a47c2ab582af93c5d267b2970f4555f934
Parents: 76c25ea
Author: Konstantin Boudnik <[email protected]>
Authored: Thu Jan 15 18:17:09 2015 -0800
Committer: Konstantin Boudnik <[email protected]>
Committed: Thu Jan 15 18:17:09 2015 -0800

----------------------------------------------------------------------
 bigtop-packages/src/common/hadoop/install_hadoop.sh | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/b4a7a7a4/bigtop-packages/src/common/hadoop/install_hadoop.sh
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/common/hadoop/install_hadoop.sh 
b/bigtop-packages/src/common/hadoop/install_hadoop.sh
index 357f17c..5a3ac83 100755
--- a/bigtop-packages/src/common/hadoop/install_hadoop.sh
+++ b/bigtop-packages/src/common/hadoop/install_hadoop.sh
@@ -302,6 +302,7 @@ cp ${DISTRO_DIR}/conf.empty/mapred-site.xml 
$HADOOP_ETC_DIR/conf.empty
 # by default
 sed -i -e '/^[^#]/s,^,#,' ${BUILD_DIR}/etc/hadoop/hadoop-env.sh
 cp ${BUILD_DIR}/etc/hadoop/* $HADOOP_ETC_DIR/conf.empty
+rm -rf $HADOOP_ETC_DIR/conf.empty/*.cmd
 
 # docs
 install -d -m 0755 ${DOC_DIR}
@@ -360,6 +361,7 @@ for conf in conf.pseudo ; do
   cp ${BUILD_DIR}/etc/hadoop/* $HADOOP_ETC_DIR/$conf
   # Remove the ones that shouldn't be installed
   rm -rf $HADOOP_ETC_DIR/$conf/httpfs*
+  rm -rf $HADOOP_ETC_DIR/$conf/*.cmd
   # Overlay the -site files
   (cd $DISTRO_DIR/$conf && tar -cf - .) | (cd $HADOOP_ETC_DIR/$conf && tar -xf 
-)
   chmod -R 0644 $HADOOP_ETC_DIR/$conf/*

Reply via email to