-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relicense under
Apache-2.0 OR MIT
. (#844)
* Switch to standard copyright headers with Apache-2.0 OR MIT. * Add formatting check to the CI. * Switch to an `AUTHORS` file. * Switch to Apache 2.0 and MIT license files. * Add a source of truth for licenses in the workspace `Cargo.toml`. * Add cargo formatting. * Add Apache 2.0 / MIT license info to the readme files. * Remove outdated license info for `resvg` tests. * Add changelog entry. * Update `explorer-thumbnailer` install script publisher.
- Loading branch information
Showing
110 changed files
with
1,787 additions
and
1,910 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# If there are new files with headers that can't match the conditions here, | ||
# then the files can be ignored by an additional glob argument via the -g flag. | ||
# For example: | ||
# -g "!src/special_file.rs" | ||
# -g "!src/special_directory" | ||
|
||
# Check all the standard Rust source files | ||
output=$(rg "^// Copyright (19|20)[\d]{2} (.+ and )?the Resvg Authors( and .+)?$\n^// SPDX-License-Identifier: Apache-2\.0 OR MIT$\n\n" --files-without-match --multiline -g "*.{rs,c,cpp,h}" .) | ||
|
||
if [ -n "$output" ]; then | ||
echo -e "The following files lack the correct copyright header:\n" | ||
echo $output | ||
echo -e "\n\nPlease add the following header:\n" | ||
echo "// Copyright $(date +%Y) the Resvg Authors" | ||
echo "// SPDX-License-Identifier: Apache-2.0 OR MIT" | ||
echo -e "\n... rest of the file ...\n" | ||
exit 1 | ||
fi | ||
|
||
echo "All files have correct copyright headers." | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# This is the list of Resvg's significant contributors. | ||
# | ||
# This does not necessarily list everyone who has contributed code, | ||
# especially since many employees of one corporation may be contributing. | ||
# To see the full list of contributors, see the revision history in | ||
# source control. | ||
Yevhenii Reizner | ||
Laurenz Stampfl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.