Skip to content

Commit 068b5e9

Browse files
maropukai-chi
authored andcommitted
[MINOR][BUILD] Remove binary license/notice files in a source release for branch-2.4+ only
## What changes were proposed in this pull request? To skip some steps to remove binary license/notice files in a source release for branch2.3 (these files only exist in master/branch-2.4 now), this pr checked a Spark release version in `dev/create-release/release-build.sh`. ## How was this patch tested? Manually checked. Closes apache#23538 from maropu/FixReleaseScript. Authored-by: Takeshi Yamamuro <[email protected]> Signed-off-by: Sean Owen <[email protected]> (cherry picked from commit abc937b) Signed-off-by: Sean Owen <[email protected]>
1 parent d2ab1db commit 068b5e9

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

dev/create-release/release-build.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,14 @@ if [[ "$1" == "package" ]]; then
174174
# Source and binary tarballs
175175
echo "Packaging release source tarballs"
176176
cp -r spark spark-$SPARK_VERSION
177-
# For source release, exclude copy of binary license/notice
178-
rm spark-$SPARK_VERSION/LICENSE-binary
179-
rm spark-$SPARK_VERSION/NOTICE-binary
180-
rm -r spark-$SPARK_VERSION/licenses-binary
177+
178+
# For source release in v2.4+, exclude copy of binary license/notice
179+
if [[ $SPARK_VERSION > "2.4" ]]; then
180+
rm spark-$SPARK_VERSION/LICENSE-binary
181+
rm spark-$SPARK_VERSION/NOTICE-binary
182+
rm -r spark-$SPARK_VERSION/licenses-binary
183+
fi
184+
181185
tar cvzf spark-$SPARK_VERSION.tgz spark-$SPARK_VERSION
182186
echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --armour --output spark-$SPARK_VERSION.tgz.asc \
183187
--detach-sig spark-$SPARK_VERSION.tgz

0 commit comments

Comments
 (0)