From 4813005fb4bde7401338a67d83538c929c12c256 Mon Sep 17 00:00:00 2001 From: Cheng Pan <379377944@qq.com> Date: Tue, 13 Apr 2021 11:35:36 +0800 Subject: [PATCH] [KYUUBI #514] [BUILD][LICENSE] Dist with LICENSE-binary ![pan3793](https://badgen.net/badge/Hello/pan3793/green) [![Closes #514](https://badgen.net/badge/Preview/Closes%20%23514/blue)](https://github.com/yaooqinn/kyuubi/pull/514) ![8](https://badgen.net/badge/%2B/8/red) ![2](https://badgen.net/badge/-/2/green) ![2](https://badgen.net/badge/commits/2/yellow) ![Target Issue](https://badgen.net/badge/Missing/Target%20Issue/ff0000) ![Test Plan](https://badgen.net/badge/Missing/Test%20Plan/ff0000) [Powered by Pull Request Badge](https://pullrequestbadge.com/?utm_medium=github&utm_source=yaooqinn&utm_campaign=badge_info) ### _Why are the changes needed?_ ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.readthedocs.io/en/latest/tools/testing.html#running-tests) locally before make a pull request Closes #514 from pan3793/license. Closes #514 31918cf [Cheng Pan] following up Spark 052b513 [Cheng Pan] [BUILD][LICENSE] Dist with LICENSE-binary Authored-by: Cheng Pan <379377944@qq.com> Signed-off-by: Kent Yao --- build/dist | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build/dist b/build/dist index 87797d2e1..6a6d7d90e 100755 --- a/build/dist +++ b/build/dist @@ -199,8 +199,14 @@ if [[ "$SPARK_PROVIDED" != "true" ]]; then "$DISTDIR/externals/spark-$SPARK_VERSION-bin-hadoop${SPARK_HADOOP_VERSION}$HIVE_VERSION_SUFFIX/" fi -# Copy license and ASF files -cp "$KYUUBI_HOME/LICENSE" "$DISTDIR" +# Copy license files +if [ -e "$KYUUBI_HOME/LICENSE-binary" ]; then + cp "$KYUUBI_HOME/LICENSE-binary" "$DISTDIR/LICENSE" + cp -r "$KYUUBI_HOME/licenses-binary" "$DISTDIR/licenses" +else + echo "Skipping copying LICENSE files" +fi + cp -r "$KYUUBI_HOME/bin" "$DISTDIR" cp -r "$KYUUBI_HOME/conf" "$DISTDIR"