diff options
author | Patrick Wendell <pwendell@gmail.com> | 2014-05-12 23:02:54 -0700 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-05-12 23:24:40 -0700 |
commit | 716462c6c265325f2b38ff518ba1610fdc3a139b (patch) | |
tree | df1538a9c1023b426fcc95effb15090e87224393 | |
parent | 9b8b737a43914ba57af35cde4fd3af92d1b36679 (diff) | |
download | spark-716462c6c265325f2b38ff518ba1610fdc3a139b.tar.gz spark-716462c6c265325f2b38ff518ba1610fdc3a139b.tar.bz2 spark-716462c6c265325f2b38ff518ba1610fdc3a139b.zip |
BUILD: Add more content to make-distribution.sh.
-rwxr-xr-x | make-distribution.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/make-distribution.sh b/make-distribution.sh index 1cc2844703..7a08d6b915 100755 --- a/make-distribution.sh +++ b/make-distribution.sh @@ -171,10 +171,22 @@ echo "Spark $VERSION built for Hadoop $SPARK_HADOOP_VERSION" > "$DISTDIR/RELEASE cp $FWDIR/assembly/target/scala*/*assembly*hadoop*.jar "$DISTDIR/lib/" cp $FWDIR/examples/target/scala*/spark-examples*.jar "$DISTDIR/lib/" +# Copy example sources (needed for python and SQL) +mkdir -p "$DISTDIR/examples/src/main" +cp -r $FWDIR/examples/src/main "$DISTDIR/examples/src/" + if [ "$SPARK_HIVE" == "true" ]; then cp $FWDIR/lib_managed/jars/datanucleus*.jar "$DISTDIR/lib/" fi +# Copy license and ASF files +cp "$FWDIR/LICENSE" "$DISTDIR" +cp "$FWDIR/NOTICE" "$DISTDIR" + +if [ -e $FWDIR/CHANGES.txt ]; then + cp "$FWDIR/CHANGES.txt" "$DISTDIR" +fi + # Copy other things mkdir "$DISTDIR"/conf cp "$FWDIR"/conf/*.template "$DISTDIR"/conf @@ -182,6 +194,7 @@ cp "$FWDIR"/conf/slaves "$DISTDIR"/conf cp -r "$FWDIR/bin" "$DISTDIR" cp -r "$FWDIR/python" "$DISTDIR" cp -r "$FWDIR/sbin" "$DISTDIR" +cp -r "$FWDIR/ec2" "$DISTDIR" # Download and copy in tachyon, if requested if [ "$SPARK_TACHYON" == "true" ]; then |