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

Include NOTICE.txt in release #622

Merged

Conversation

danielmitterdorfer
Copy link
Member

With this commit we generate a NOTICE.txt file and include it in the
Rally wheel as well as the offline distribution package.

With this commit we generate a NOTICE.txt file and include it in the
Rally wheel as well as the offline distribution package.
@danielmitterdorfer danielmitterdorfer added enhancement Improves the status quo :misc Changes that don't affect users directly: linter fixes, test improvements, etc. labels Jan 3, 2019
@danielmitterdorfer danielmitterdorfer added this to the 1.0.3 milestone Jan 3, 2019

echo "Preparing NOTICE file"
__NOTICE_OUTPUT_FILE="${ABSOLUTE_DOWNLOAD_BIN_DIR}/NOTICE.txt"
source "${SCRIPT_SRC_HOME}/../create-notice.sh"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Referencing a script from a different directory is not nice. I think we should move our build-related scripts to a dedicated directory. However, I wanted to keep the scope of this PR as small as possible.

}

function main {
cat NOTICE > "${OUTPUT_FILE}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how important it is, but does it make sense to use a variable name for NOTICE file? We are not likely to reuse it anywhere, so may be it's okay.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO it is ok to reference NOTICE here directly.

Copy link
Contributor

@ebadyano ebadyano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Thanks!

@danielmitterdorfer danielmitterdorfer merged commit 60279ae into elastic:master Jan 4, 2019
@danielmitterdorfer danielmitterdorfer deleted the include-notice branch January 4, 2019 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the status quo :misc Changes that don't affect users directly: linter fixes, test improvements, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants