add licensing headers (#27)

* add licensing headers

* add licensing to run actions

* rerun headers file

* remove trailing white spaces
This commit is contained in:
evonneng authored and GitHub committed 2022-06-08 13:31:13 -07:00
1 parent f183e03517
commit 5433f831ac
65 files changed
+880

No files matched your search

+3
View File
@@ -24,3 +24,6 @@ if __name__ == "__main__":
# Add checks for building documentation
subprocess.call("cd docs/; make html; cd ../", shell=True)
# Add licensing to all pyrad files
subprocess.call("./scripts/licensing/license_headers.sh", shell=True)
+14
View File
@@ -0,0 +1,14 @@
# Copyright 2022 The Plenoptix Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
for i in $(find pyrad/ -name '*.py');
do
if ! grep -q Copyright $i
then
cat scripts/licensing/copyright.txt $i >$i.new && mv $i.new $i
fi
done