-
-
Notifications
You must be signed in to change notification settings - Fork 414
Extract and extend license and copyright #2959
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
base: master
Are you sure you want to change the base?
Changes from all commits
5b1de2e
4d8e9f8
da6f8a8
63608b3
8199ed6
3140dd5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you remove the comments and move to another directory? I think the root directory is ok. I would also remove the env variables and just create a file with the copyright notice all filled up. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// This file is part of arduino-cli. | ||
// | ||
// Copyright $Year $Holder | ||
// | ||
// This software is released under the GNU General Public License version 3, | ||
// which covers the main part of arduino-cli. | ||
// The terms of this license can be found at: | ||
// https://www.gnu.org/licenses/gpl-3.0.en.html | ||
// | ||
// You can be released from the requirements of the above licenses by purchasing | ||
// a commercial license. Buying such a license is mandatory if you want to | ||
// modify or otherwise use the software for commercial activities involving the | ||
// Arduino software without disclosing the source code of your own applications. | ||
// To purchase a commercial license, send an email to license@arduino.cc. | ||
|
||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -4,6 +4,39 @@ includes: | |||||||||||||||||||||||||||||||
dist: ./DistTasks.yml | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
tasks: | ||||||||||||||||||||||||||||||||
extract-licenses: | ||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would call this task something like |
||||||||||||||||||||||||||||||||
desc: Extract project and dependency licenses into debian copyright | ||||||||||||||||||||||||||||||||
cmds: | ||||||||||||||||||||||||||||||||
- | | ||||||||||||||||||||||||||||||||
if ! command -v licensed >/dev/null; then | ||||||||||||||||||||||||||||||||
echo "Installing Ruby gem: licensed" | ||||||||||||||||||||||||||||||||
gem install licensed | ||||||||||||||||||||||||||||||||
fi | ||||||||||||||||||||||||||||||||
- licensed notices | ||||||||||||||||||||||||||||||||
- mkdir -p debian/arduino-cli/usr/share/doc/arduino-cli/ | ||||||||||||||||||||||||||||||||
- cat arduino-cli-license.txt > debian/arduino-cli/usr/share/doc/arduino-cli/copyright | ||||||||||||||||||||||||||||||||
- echo -e "\n\n---\n\n" >> debian/arduino-cli/usr/share/doc/arduino-cli/copyright | ||||||||||||||||||||||||||||||||
- cat /Users/sedia/repo/arduino-cli/.licenses/NOTICE.arduino-cli >> debian/arduino-cli/usr/share/doc/arduino-cli/copyright | ||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||
sources: | ||||||||||||||||||||||||||||||||
- LICENSE.txt | ||||||||||||||||||||||||||||||||
- licenses/** | ||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
append-license: | ||||||||||||||||||||||||||||||||
desc: Render and append arduino-cli license to NOTICE file | ||||||||||||||||||||||||||||||||
cmds: | ||||||||||||||||||||||||||||||||
- | | ||||||||||||||||||||||||||||||||
rendered=$(envsubst < .licenses/templates/arduino-cli-license.txt) | ||||||||||||||||||||||||||||||||
notice_file=".licenses/NOTICE.arduino-cli" | ||||||||||||||||||||||||||||||||
tmp_file=$(mktemp) | ||||||||||||||||||||||||||||||||
echo "$rendered" > "$tmp_file" | ||||||||||||||||||||||||||||||||
echo -e "\n" >> "$tmp_file" | ||||||||||||||||||||||||||||||||
cat "$notice_file" >> "$tmp_file" | ||||||||||||||||||||||||||||||||
mv "$tmp_file" "$notice_file" | ||||||||||||||||||||||||||||||||
env: | ||||||||||||||||||||||||||||||||
Year: '{{ now | date "2006" }}' | ||||||||||||||||||||||||||||||||
Holder: "ARDUINO SA (http://www.arduino.cc/)" | ||||||||||||||||||||||||||||||||
silent: false | ||||||||||||||||||||||||||||||||
Comment on lines
+24
to
+38
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this autogeneration system will be useful. I would just commit a copyright notice file without the env variable and use that during the build.
Suggested change
|
||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
docs:generate: | ||||||||||||||||||||||||||||||||
desc: Create all generated documentation content | ||||||||||||||||||||||||||||||||
deps: | ||||||||||||||||||||||||||||||||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.