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

Prefixes documentation files per component #21

Merged
merged 2 commits into from
Jun 20, 2017

Conversation

seemethere
Copy link
Contributor

Since we pull from multiple components to build docker-ce now it makes sense to have all of the related files associated with each component packaged into RPMS.

This will prefix all files that were previously included in the RPM with the component from which they originate.

End result will look like so:

screen shot 2017-06-19 at 1 19 47 pm

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
for engine_file in engine/AUTHORS engine/CHANGELOG.md engine/CONTRIBUTING.md engine/LICENSE engine/MAINTAINERS engine/NOTICE engine/README.md; do
cp "$engine_file" "build-docs/engine-$(basename $engine_file)"
done
for cli_file in cli/LICENSE cli/MAINTAINERS cli/NOTICE cli/README.md; do
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to depend on basename:

for cli_file in LICENSE MAINTAINERS NOTICE README.md; do
  cp "cli/$cli_file" "build-docs/cli-$cli_file"
done

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed per 8251d8f

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
@andrewhsu andrewhsu merged commit 24e443c into docker:master Jun 20, 2017
@seemethere seemethere deleted the add_per_component_docs branch July 25, 2017 20:17
glours pushed a commit that referenced this pull request Mar 23, 2020
* Prefixes documentation files per component

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>

* Remove reliance on basename

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
(cherry picked from commit 24e443c)
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants