Skip to content

Commit abc937b

Browse files
maropusrowen
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]>
1 parent bafc7ac commit abc937b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

dev/create-release/release-build.sh

+8-4
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,14 @@ if [[ "$1" == "package" ]]; then
176176
# Source and binary tarballs
177177
echo "Packaging release source tarballs"
178178
cp -r spark spark-$SPARK_VERSION
179-
# For source release, exclude copy of binary license/notice
180-
rm spark-$SPARK_VERSION/LICENSE-binary
181-
rm spark-$SPARK_VERSION/NOTICE-binary
182-
rm -r spark-$SPARK_VERSION/licenses-binary
179+
180+
# For source release in v2.4+, exclude copy of binary license/notice
181+
if [[ $SPARK_VERSION > "2.4" ]]; then
182+
rm spark-$SPARK_VERSION/LICENSE-binary
183+
rm spark-$SPARK_VERSION/NOTICE-binary
184+
rm -r spark-$SPARK_VERSION/licenses-binary
185+
fi
186+
183187
tar cvzf spark-$SPARK_VERSION.tgz spark-$SPARK_VERSION
184188
echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --armour --output spark-$SPARK_VERSION.tgz.asc \
185189
--detach-sig spark-$SPARK_VERSION.tgz

0 commit comments

Comments
 (0)