Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Commits
69ffa762
Commit
69ffa762
authored
5 months ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
Updated scripts to update license headers
parent
91a9cb07
No related branches found
No related tags found
2 merge requests
!294
Release TeraFlowSDN 4.0
,
!293
Resolve "Update license headers for Release 4"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/add_license_header_to_files.sh
+1
-1
1 addition, 1 deletion
scripts/add_license_header_to_files.sh
scripts/update_license_headers.py
+2
-1
2 additions, 1 deletion
scripts/update_license_headers.py
with
3 additions
and
2 deletions
scripts/add_license_header_to_files.sh
+
1
−
1
View file @
69ffa762
...
...
@@ -16,7 +16,7 @@
docker pull ghcr.io/google/addlicense:latest
docker run
-it
-v
${
PWD
}
:/src ghcr.io/google/addlicense
\
-l
apache
-c
"ETSI
OSG/
SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)"
-y
2022-2024
\
-l
apache
-c
"ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)"
-y
2022-2024
\
-ignore
"data/*"
-ignore
"data/**"
-ignore
"tmp/*"
-ignore
"tmp/**"
-ignore
"manifests/cttc-ols/*"
\
-ignore
"coverage/*"
-ignore
"coverage/**"
-ignore
".vscode/*"
-ignore
".vscode/**"
\
-ignore
".git/*"
-ignore
".git/**"
-ignore
"proto/uml/*"
-ignore
"proto/uml/**"
\
...
...
This diff is collapsed.
Click to expand it.
scripts/update_license_headers.py
+
2
−
1
View file @
69ffa762
...
...
@@ -27,12 +27,13 @@ FILE_PATH_SKIPPED = 'out-skipped.txt'
FILE_PATH_NO_HEADER
=
'
out-no-header.txt
'
FILE_PATH_UPDATED
=
'
out-updated.txt
'
STR_NEW_COPYRIGHT
=
'
Copyright 2022-2024 ETSI
OSG/
SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
'
STR_NEW_COPYRIGHT
=
'
Copyright 2022-2024 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
'
RE_OLD_COPYRIGHTS
=
[
r
'
Copyright\ 2021\-2023\ H2020\ TeraFlow\ \(https\:\/\/www\.teraflow\-h2020\.eu\/\)
'
,
r
'
Copyright\ 2022\-2023\ ETSI\ TeraFlowSDN\ \-\ TFS\ OSG\ \(https\:\/\/tfs\.etsi\.org\/\)
'
,
r
'
Copyright\ 2022\-2024\ ETSI\ TeraFlowSDN\ \-\ TFS\ OSG\ \(https\:\/\/tfs\.etsi\.org\/\)
'
,
r
'
Copyright\ 2022\-2024\ ETSI\ TeraFlowSDN\ \-\ TFS\ OSG\/SDG\ \(https\:\/\/tfs\.etsi\.org\/\)
'
,
]
RE_OLD_COPYRIGHTS
=
[
(
re
.
compile
(
r
'
.*{}.*
'
.
format
(
re_old_copyright
)),
re
.
compile
(
re_old_copyright
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment