forked from NASA-AMMOS/anms-ace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update license tool and markings (#4)
* Pulling in license marking script * Apply license marking script
- Loading branch information
1 parent
4653403
commit aa879be
Showing
40 changed files
with
380 additions
and
160 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
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
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 |
---|---|---|
@@ -1,15 +1,19 @@ | ||
# Editor files | ||
*~ | ||
*.bak | ||
.project | ||
.pydevproject | ||
|
||
# Python intermediates | ||
__pycache__ | ||
*.egg-info | ||
requirements.txt | ||
build | ||
dist | ||
.venv*/ | ||
|
||
# Test outputs | ||
testresults.xml | ||
.coverage | ||
coverage.xml | ||
/.pytest_cache/ |
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
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
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,51 @@ | ||
#!/bin/bash | ||
## | ||
## Copyright (c) 2020-2024 The Johns Hopkins University Applied Physics | ||
## Laboratory LLC. | ||
## | ||
## This file is part of the AMM CODEC Engine (ACE) under the | ||
## DTN Management Architecture (DTNMA) reference implementaton set from APL. | ||
## | ||
## 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. | ||
## | ||
## Portions of this work were performed for the Jet Propulsion Laboratory, | ||
## California Institute of Technology, sponsored by the United States Government | ||
## under the prime contract 80NM0018D0004 between the Caltech and NASA under | ||
## subcontract 1658085. | ||
## | ||
|
||
# Apply copyright and license markings to source files. | ||
# | ||
# Requires installation of: | ||
# pip3 install licenseheaders | ||
# Run as: | ||
# ./apply_license.sh {--dry} {-vv} | ||
# | ||
set -e | ||
|
||
SELFDIR=$(realpath $(dirname "${BASH_SOURCE[0]}")) | ||
|
||
LICENSEOPTS="${LICENSEOPTS} --tmpl ${SELFDIR}/apply_license.tmpl" | ||
LICENSEOPTS="${LICENSEOPTS} --years 2020-$(date +%Y)" | ||
# Excludes only apply to directory (--dir) mode and not file mode | ||
#LICENSEOPTS="${LICENSEOPTS} --exclude *.yml *.yaml *.min. " | ||
|
||
|
||
# Specific paths | ||
if [ "$#" -gt 0 ] | ||
then | ||
echo "Applying markings to selected $@ ..." | ||
licenseheaders ${LICENSEOPTS} --dir $@ | ||
exit 0 | ||
fi | ||
|
||
echo "Applying markings to source..." | ||
licenseheaders ${LICENSEOPTS} --dir ${SELFDIR} |
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,20 @@ | ||
Copyright (c) ${years} The Johns Hopkins University Applied Physics | ||
Laboratory LLC. | ||
|
||
This file is part of the AMM CODEC Engine (ACE) under the | ||
DTN Management Architecture (DTNMA) reference implementaton set from APL. | ||
|
||
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. | ||
|
||
Portions of this work were performed for the Jet Propulsion Laboratory, | ||
California Institute of Technology, sponsored by the United States Government | ||
under the prime contract 80NM0018D0004 between the Caltech and NASA under | ||
subcontract 1658085. |
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
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
Oops, something went wrong.