Skip to content

Commit 52d9052

Browse files
committed
BUILD: Add more content to make-distribution.sh.
1 parent 2792bd0 commit 52d9052

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

make-distribution.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,30 @@ echo "Spark $VERSION built for Hadoop $SPARK_HADOOP_VERSION" > "$DISTDIR/RELEASE
171171
cp $FWDIR/assembly/target/scala*/*assembly*hadoop*.jar "$DISTDIR/lib/"
172172
cp $FWDIR/examples/target/scala*/spark-examples*.jar "$DISTDIR/lib/"
173173

174+
# Copy example sources (needed for python and SQL)
175+
mkdir -p "$DISTDIR/examples/src/main"
176+
cp -r $FWDIR/examples/src/main "$DISTDIR/examples/src/"
177+
174178
if [ "$SPARK_HIVE" == "true" ]; then
175179
cp $FWDIR/lib_managed/jars/datanucleus*.jar "$DISTDIR/lib/"
176180
fi
177181

182+
# Copy license and ASF files
183+
cp "$FWDIR/LICENSE" "$DISTDIR"
184+
cp "$FWDIR/NOTICE" "$DISTDIR"
185+
186+
if [ -e $FWDIR/CHANGES.txt ]; then
187+
cp "$FWDIR/CHANGES.txt" "$DISTDIR"
188+
fi
189+
178190
# Copy other things
179191
mkdir "$DISTDIR"/conf
180192
cp "$FWDIR"/conf/*.template "$DISTDIR"/conf
181193
cp "$FWDIR"/conf/slaves "$DISTDIR"/conf
182194
cp -r "$FWDIR/bin" "$DISTDIR"
183195
cp -r "$FWDIR/python" "$DISTDIR"
184196
cp -r "$FWDIR/sbin" "$DISTDIR"
197+
cp -r "$FWDIR/ec2" "$DISTDIR"
185198

186199
# Download and copy in tachyon, if requested
187200
if [ "$SPARK_TACHYON" == "true" ]; then

0 commit comments

Comments
 (0)