-
Notifications
You must be signed in to change notification settings - Fork 208
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
Fix #4909 - Update license to new format #4910
Conversation
ROOT_DIR = File.absolute_path(File.join(File.dirname(__FILE__), "../../")) | ||
LICENSE_PATH = File.join(ROOT_DIR, 'LICENSE.md') | ||
|
||
|
||
license_lines = File.readlines(LICENSE_PATH) | ||
# Now with short version | ||
license_lines = [ | ||
"OpenStudio(R), Copyright (c) Alliance for Sustainable Energy, LLC.\n", | ||
"See also https://openstudio.net/license\n" | ||
] |
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.
New short license here. Shouldn't change.
the https://openstudio.net/license is a dead link currently though
exceptions = [ | ||
File.join(ROOT_DIR, "ci"), | ||
File.join(ROOT_DIR, "developer"), | ||
File.join(ROOT_DIR, "src/nano/"), | ||
File.join(ROOT_DIR, "src/polypartition/"), | ||
"mainpage.hpp", | ||
"empty.hpp" | ||
] | ||
|
||
# glob for hpp and cpp | ||
files = Dir.glob(basepath + "/src/**/*.[ch]pp") | ||
files.concat Dir.glob(basepath + "/ruby/**/*.[ch]pp") | ||
files.concat Dir.glob(basepath + "/src/**/*.cxx.in") | ||
files.concat Dir.glob(basepath + "/src/**/*.tmp") | ||
files = Dir.glob(File.join(ROOT_DIR, "**/*.[ch]pp")) | ||
files += Dir.glob(File.join(ROOT_DIR, "**/*.[ch]xx.in")) |
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.
Clean up the code a bit to match the new structure. I'm grabbing files and folder that were excluded before (like the python/ one). I'm also adding license to python/**/*.py too
LICENSE.md
Outdated
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.
Modif here
copyright.txt
Outdated
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.
And here (also got the latest E+ license from github)
`ruby developer/ruby/ApplyCopyright.rb`
CI Results for 7662d79:
|
@jmarrec This is great. Going to make the copyright maintenance so much easier. |
Pull request overview
Pull Request Author
src/model/test
)src/energyplus/Test
)src/osversion/VersionTranslator.cpp
)Labels:
IDDChange
APIChange
Pull Request - Ready for CI
so that CI builds your PRReview Checklist
This will not be exhaustively relevant to every PR.