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
0920848b
Commit
0920848b
authored
5 months ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
Updated scripts to update license headers
parent
9cfa4b5a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!294
Release TeraFlowSDN 4.0
,
!293
Resolve "Update license headers for Release 4"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/update_license_headers.py
+5
-3
5 additions, 3 deletions
scripts/update_license_headers.py
with
5 additions
and
3 deletions
scripts/update_license_headers.py
+
5
−
3
View file @
0920848b
#!/bin/bash
# Copyright 2022-2024 ETSI TeraFlowSDN
-
TFS
OSG/SDG
(https://tfs.etsi.org/)
# Copyright 2022-2024 ETSI
SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -34,6 +34,7 @@ RE_OLD_COPYRIGHTS = [
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\/\)
'
,
r
'
Copyright\ 2022\-2024\ ETSI\ OSG\/SDG\ TeraFlowSDN\ \(TFS\)\ \(https\:\/\/tfs\.etsi\.org\/\)
'
,
]
RE_OLD_COPYRIGHTS
=
[
(
re
.
compile
(
r
'
.*{}.*
'
.
format
(
re_old_copyright
)),
re
.
compile
(
re_old_copyright
))
...
...
@@ -52,6 +53,7 @@ def skip_file(file_path : str) -> bool:
if
file_path
.
endswith
(
'
.csv
'
):
return
True
if
file_path
.
endswith
(
'
.zip
'
):
return
True
if
file_path
.
endswith
(
'
.zip
'
):
return
True
if
file_path
.
endswith
(
'
.tgz
'
):
return
True
if
file_path
.
endswith
(
'
.jar
'
):
return
True
if
file_path
.
endswith
(
'
.onnx
'
):
return
True
if
file_path
.
endswith
(
'
/tstat
'
):
return
True
...
...
@@ -91,8 +93,8 @@ def skip_file(file_path : str) -> bool:
if
'
/nbi/service/rest_server/nbi_plugins/ietf_network/yang/
'
in
file_path
:
return
True
if
'
/ztp/target/
'
in
file_path
:
return
True
if
'
/policy/target/
'
in
file_path
:
return
True
if
'
/dlt/gateway/
Dockerfile
'
in
file_path
:
return
Fals
e
if
'
/
dlt/gateway
/
'
in
file_path
:
return
True
if
'
/dlt/gateway/
_legacy
'
in
file_path
:
return
Tru
e
if
'
/
proto/src/python/asyncio
/
'
in
file_path
:
return
True
if
FILE_PATH_SKIPPED
in
file_path
:
return
True
if
FILE_PATH_NO_HEADER
in
file_path
:
return
True
if
FILE_PATH_UPDATED
in
file_path
:
return
True
...
...
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