diff options
author | Thomas Haller <thaller@redhat.com> | 2019-10-01 09:20:35 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-10-01 09:35:58 +0200 |
commit | 10936a35fd401b7f05fe17feccfbc8ffa9ff7800 (patch) | |
tree | 15e4eb7f3e5137981dd0dc5322de5f9ca24e3ee7 /examples/python | |
parent | 50f146f6e3c932e261af16706608a6e0508bbd5f (diff) | |
download | NetworkManager-th/copyright-comment-cleanup.tar.gz |
all: unify format of our Copyright source code commentsth/copyright-comment-cleanup
```bash
readarray -d '' FILES < <(
git ls-files -z \
':(exclude)po' \
':(exclude)shared/c-rbtree' \
':(exclude)shared/c-list' \
':(exclude)shared/c-siphash' \
':(exclude)shared/c-stdaux' \
':(exclude)shared/n-acd' \
':(exclude)shared/n-dhcp4' \
':(exclude)src/systemd/src' \
':(exclude)shared/systemd/src' \
':(exclude)m4' \
':(exclude)COPYING*'
)
sed \
-e 's/^\(--\|#\| \*\) *\(([cC]) *\)\?Copyright \+\(\(([cC])\) \+\)\?\(\(20\|19\)[0-9][0-9]\) *[-–] *\(\(20\|19\)[0-9][0-9]\) \+\([^ ].*\)$/\1 C1pyright#\5 - \7#\9/' \
-e 's/^\(--\|#\| \*\) *\(([cC]) *\)\?Copyright \+\(\(([cC])\) \+\)\?\(\(20\|19\)[0-9][0-9]\) *[,] *\(\(20\|19\)[0-9][0-9]\) \+\([^ ].*\)$/\1 C2pyright#\5, \7#\9/' \
-e 's/^\(--\|#\| \*\) *\(([cC]) *\)\?Copyright \+\(\(([cC])\) \+\)\?\(\(20\|19\)[0-9][0-9]\) \+\([^ ].*\)$/\1 C3pyright#\5#\7/' \
-e 's/^Copyright \(\(20\|19\)[0-9][0-9]\) \+\([^ ].*\)$/C4pyright#\1#\3/' \
-i \
"${FILES[@]}"
echo ">>> untouched Copyright lines"
git grep Copyright "${FILES[@]}"
echo ">>> Copyright lines with unusual extra"
git grep '\<C[0-9]pyright#' "${FILES[@]}" | grep -i reserved
sed \
-e 's/\<C[0-9]pyright#\([^#]*\)#\(.*\)$/Copyright (C) \1 \2/' \
-i \
"${FILES[@]}"
```
Diffstat (limited to 'examples/python')
-rwxr-xr-x | examples/python/gi/add_connection.py | 2 | ||||
-rwxr-xr-x | examples/python/gi/checkpoint.py | 2 | ||||
-rwxr-xr-x | examples/python/gi/deactivate-all.py | 2 | ||||
-rwxr-xr-x | examples/python/gi/firewall-zone.py | 2 | ||||
-rwxr-xr-x | examples/python/gi/get_ips.py | 2 | ||||
-rwxr-xr-x | examples/python/gi/list-connections.py | 2 | ||||
-rwxr-xr-x | examples/python/gi/nm-add-connection2.py | 2 | ||||
-rwxr-xr-x | examples/python/gi/nm-connection-update-stable-id.py | 2 | ||||
-rwxr-xr-x | examples/python/gi/nm-update2.py | 2 | ||||
-rwxr-xr-x | examples/python/gi/nm-wg-set | 2 | ||||
-rwxr-xr-x | examples/python/gi/setting-user-data.py | 2 | ||||
-rwxr-xr-x | examples/python/gi/update-ip4-method.py | 2 | ||||
-rwxr-xr-x | examples/python/gi/vpn-import.py | 2 |
13 files changed, 13 insertions, 13 deletions
diff --git a/examples/python/gi/add_connection.py b/examples/python/gi/add_connection.py index b650b9f388..9cf9e348f1 100755 --- a/examples/python/gi/add_connection.py +++ b/examples/python/gi/add_connection.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ # -# Copyright 2014 Red Hat, Inc. +# Copyright (C) 2014 Red Hat, Inc. # # diff --git a/examples/python/gi/checkpoint.py b/examples/python/gi/checkpoint.py index c5b20d683c..b3b4e0f8a5 100755 --- a/examples/python/gi/checkpoint.py +++ b/examples/python/gi/checkpoint.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ # -# Copyright 2017 Red Hat, Inc. +# Copyright (C) 2017 Red Hat, Inc. # import sys diff --git a/examples/python/gi/deactivate-all.py b/examples/python/gi/deactivate-all.py index a10c0ebb4b..3af350e4c3 100755 --- a/examples/python/gi/deactivate-all.py +++ b/examples/python/gi/deactivate-all.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ # -# Copyright 2015 Red Hat, Inc. +# Copyright (C) 2015 Red Hat, Inc. # # diff --git a/examples/python/gi/firewall-zone.py b/examples/python/gi/firewall-zone.py index 75aa2e2616..6cbd8c2549 100755 --- a/examples/python/gi/firewall-zone.py +++ b/examples/python/gi/firewall-zone.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ # -# Copyright 2013 - 2014 Red Hat, Inc. +# Copyright (C) 2013 - 2014 Red Hat, Inc. # import sys diff --git a/examples/python/gi/get_ips.py b/examples/python/gi/get_ips.py index 12378117a7..13b0a8b6db 100755 --- a/examples/python/gi/get_ips.py +++ b/examples/python/gi/get_ips.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ # -# Copyright 2014 Red Hat, Inc. +# Copyright (C) 2014 Red Hat, Inc. # import sys, socket diff --git a/examples/python/gi/list-connections.py b/examples/python/gi/list-connections.py index eee687c9e8..7278fafd9b 100755 --- a/examples/python/gi/list-connections.py +++ b/examples/python/gi/list-connections.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ # -# Copyright 2012 - 2014 Red Hat, Inc. +# Copyright (C) 2012 - 2014 Red Hat, Inc. # import gi diff --git a/examples/python/gi/nm-add-connection2.py b/examples/python/gi/nm-add-connection2.py index a62443730c..01c1ae7bd9 100755 --- a/examples/python/gi/nm-add-connection2.py +++ b/examples/python/gi/nm-add-connection2.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ # -# Copyright 2019 Red Hat, Inc. +# Copyright (C) 2019 Red Hat, Inc. # import sys diff --git a/examples/python/gi/nm-connection-update-stable-id.py b/examples/python/gi/nm-connection-update-stable-id.py index 163b3018e0..3629d07230 100755 --- a/examples/python/gi/nm-connection-update-stable-id.py +++ b/examples/python/gi/nm-connection-update-stable-id.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ # -# Copyright 2017 Red Hat, Inc. +# Copyright (C) 2017 Red Hat, Inc. # # diff --git a/examples/python/gi/nm-update2.py b/examples/python/gi/nm-update2.py index 124464de22..5a65879371 100755 --- a/examples/python/gi/nm-update2.py +++ b/examples/python/gi/nm-update2.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ # -# Copyright 2019 Red Hat, Inc. +# Copyright (C) 2019 Red Hat, Inc. # import sys diff --git a/examples/python/gi/nm-wg-set b/examples/python/gi/nm-wg-set index a151c6094b..ca31ac7207 100755 --- a/examples/python/gi/nm-wg-set +++ b/examples/python/gi/nm-wg-set @@ -1,7 +1,7 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ # -# Copyright 2018 - 2019 Red Hat, Inc. +# Copyright (C) 2018 - 2019 Red Hat, Inc. # # nm-wg-set: modify an existing WireGuard connection profile. diff --git a/examples/python/gi/setting-user-data.py b/examples/python/gi/setting-user-data.py index dac81b78a8..fd86445b84 100755 --- a/examples/python/gi/setting-user-data.py +++ b/examples/python/gi/setting-user-data.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ # -# Copyright 2017 Red Hat, Inc. +# Copyright (C) 2017 Red Hat, Inc. # # diff --git a/examples/python/gi/update-ip4-method.py b/examples/python/gi/update-ip4-method.py index fbfd2a893a..9bba619918 100755 --- a/examples/python/gi/update-ip4-method.py +++ b/examples/python/gi/update-ip4-method.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ # -# Copyright 2014 Red Hat, Inc. +# Copyright (C) 2014 Red Hat, Inc. # # diff --git a/examples/python/gi/vpn-import.py b/examples/python/gi/vpn-import.py index b86518bab6..78ae7cb182 100755 --- a/examples/python/gi/vpn-import.py +++ b/examples/python/gi/vpn-import.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # SPDX-License-Identifier: GPL-2.0+ # -# Copyright 2014 Red Hat, Inc. +# Copyright (C) 2014 Red Hat, Inc. # # |