Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore zip script to clean rc4 legal files #1269

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions tools/zip-sources-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function zip_sources() {
exit 1
fi

#Remove unnecessary dirs
#Remove unnecessary content
pushd $REPO_DIRECTORY
CURRENT_DIRECTORY=$(pwd)
echo "Current directory is ${CURRENT_DIRECTORY}"
Expand All @@ -80,15 +80,17 @@ function zip_sources() {
echo ".git directory found, deleting..."
rm -rf ".git"
fi
echo "remove legal files"
rm -f "LICENSE" "NOTICE" "DISCLAIMER" "DISCLAIMER-WIP" "LICENSE-Apache-2.0.txt" "LICENSE.txt"
echo "After .git removal"
ls -lha
popd

done <<< $SOURCES_REPOSITORIES

#Add LICENSE, NOTICE and DISCLAIMER files to the root folder of the zip file
echo "Adding LICENSE, NOTICE and DISCLAIMER files to the zip file"
cp ./tools/zip-sources-files/{LICENSE,NOTICE,DISCLAIMER-WIP} ${SOURCES_DIRECTORY_NAME}
echo "Adding LICENSE, NOTICE, DISCLAIMER-WIP, BUILD and build.sh files to the zip file"
cp ./tools/zip-sources-files/{LICENSE,NOTICE,DISCLAIMER-WIP,BUILD,build.sh} ${SOURCES_DIRECTORY_NAME}

#Creating ZIP
pushd ${SOURCES_DIRECTORY_NAME}
Expand Down
Loading