summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-10-01 09:20:35 +0200
committerThomas Haller <thaller@redhat.com>2019-10-02 17:03:52 +0200
commit3b69f02164d20258720b6a06d98a07c0c710e219 (patch)
treec8b0b68b8a4c355fcea82e006308b3f68756b00c /examples
parenta5ca504b5be77ef1fefbb6e8d159377e2b7bbe68 (diff)
downloadNetworkManager-3b69f02164d20258720b6a06d98a07c0c710e219.tar.gz
all: unify format of our Copyright source code comments
```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[@]}" ``` https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/298
Diffstat (limited to 'examples')
-rw-r--r--examples/C/glib/add-connection-gdbus.c2
-rw-r--r--examples/C/glib/add-connection-libnm.c2
-rw-r--r--examples/C/glib/get-active-connections-gdbus.c2
-rw-r--r--examples/C/glib/get-ap-info-libnm.c2
-rw-r--r--examples/C/glib/list-connections-gdbus.c2
-rw-r--r--examples/C/glib/list-connections-libnm.c2
-rw-r--r--examples/C/glib/monitor-nm-running-gdbus.c2
-rw-r--r--examples/C/glib/monitor-nm-state-gdbus.c2
-rw-r--r--examples/C/qt/add-connection-wired.cpp2
-rw-r--r--examples/C/qt/change-ipv4-addresses.cpp2
-rw-r--r--examples/C/qt/list-connections.cpp2
-rw-r--r--examples/C/qt/monitor-nm-running.cpp2
-rwxr-xr-xexamples/dispatcher/70-wifi-wired-exclusive.sh4
-rwxr-xr-xexamples/js/get_ips.js2
-rwxr-xr-xexamples/lua/lgi/add-connection.lua2
-rwxr-xr-xexamples/lua/lgi/change-vpn-username.lua2
-rwxr-xr-xexamples/lua/lgi/deactivate-all.lua2
-rwxr-xr-xexamples/lua/lgi/get-basic-nm-info.lua2
-rwxr-xr-xexamples/lua/lgi/get-ips.lua2
-rwxr-xr-xexamples/lua/lgi/list-connections.lua2
-rwxr-xr-xexamples/lua/lgi/list-devices.lua2
-rwxr-xr-xexamples/lua/lgi/show-wifi-networks.lua2
-rwxr-xr-xexamples/python/gi/add_connection.py2
-rwxr-xr-xexamples/python/gi/checkpoint.py2
-rwxr-xr-xexamples/python/gi/deactivate-all.py2
-rwxr-xr-xexamples/python/gi/firewall-zone.py2
-rwxr-xr-xexamples/python/gi/get_ips.py2
-rwxr-xr-xexamples/python/gi/list-connections.py2
-rwxr-xr-xexamples/python/gi/nm-add-connection2.py2
-rwxr-xr-xexamples/python/gi/nm-connection-update-stable-id.py2
-rwxr-xr-xexamples/python/gi/nm-update2.py2
-rwxr-xr-xexamples/python/gi/nm-wg-set2
-rwxr-xr-xexamples/python/gi/setting-user-data.py2
-rwxr-xr-xexamples/python/gi/update-ip4-method.py2
-rwxr-xr-xexamples/python/gi/vpn-import.py2
35 files changed, 36 insertions, 36 deletions
diff --git a/examples/C/glib/add-connection-gdbus.c b/examples/C/glib/add-connection-gdbus.c
index 36ffe91963..3ffb292924 100644
--- a/examples/C/glib/add-connection-gdbus.c
+++ b/examples/C/glib/add-connection-gdbus.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+
/*
- * Copyright 2011, 2014 Red Hat, Inc.
+ * Copyright (C) 2011, 2014 Red Hat, Inc.
*/
/*
diff --git a/examples/C/glib/add-connection-libnm.c b/examples/C/glib/add-connection-libnm.c
index cd9733085e..4859b9072b 100644
--- a/examples/C/glib/add-connection-libnm.c
+++ b/examples/C/glib/add-connection-libnm.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+
/*
- * Copyright 2011 Red Hat, Inc.
+ * Copyright (C) 2011 Red Hat, Inc.
*/
/*
diff --git a/examples/C/glib/get-active-connections-gdbus.c b/examples/C/glib/get-active-connections-gdbus.c
index 182789e866..e4218ae500 100644
--- a/examples/C/glib/get-active-connections-gdbus.c
+++ b/examples/C/glib/get-active-connections-gdbus.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+
/*
- * (C) Copyright 2010 -2014 Red Hat, Inc.
+ * Copyright (C) 2010 - 2014 Red Hat, Inc.
*/
/*
diff --git a/examples/C/glib/get-ap-info-libnm.c b/examples/C/glib/get-ap-info-libnm.c
index 16bc127fa3..85242b0e76 100644
--- a/examples/C/glib/get-ap-info-libnm.c
+++ b/examples/C/glib/get-ap-info-libnm.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+
/*
- * Copyright 2010 Red Hat, Inc.
+ * Copyright (C) 2010 Red Hat, Inc.
*/
/*
diff --git a/examples/C/glib/list-connections-gdbus.c b/examples/C/glib/list-connections-gdbus.c
index 4e45c93e27..028ff91053 100644
--- a/examples/C/glib/list-connections-gdbus.c
+++ b/examples/C/glib/list-connections-gdbus.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+
/*
- * Copyright 2011, 2014 Red Hat, Inc.
+ * Copyright (C) 2011, 2014 Red Hat, Inc.
*/
/*
diff --git a/examples/C/glib/list-connections-libnm.c b/examples/C/glib/list-connections-libnm.c
index 02a03acfad..77d5dfb729 100644
--- a/examples/C/glib/list-connections-libnm.c
+++ b/examples/C/glib/list-connections-libnm.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+
/*
- * Copyright 2011 Red Hat, Inc.
+ * Copyright (C) 2011 Red Hat, Inc.
*/
/*
diff --git a/examples/C/glib/monitor-nm-running-gdbus.c b/examples/C/glib/monitor-nm-running-gdbus.c
index b2745c1fb8..3856e73140 100644
--- a/examples/C/glib/monitor-nm-running-gdbus.c
+++ b/examples/C/glib/monitor-nm-running-gdbus.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+
/*
- * Copyright 2012 Red Hat, Inc.
+ * Copyright (C) 2012 Red Hat, Inc.
*/
/*
diff --git a/examples/C/glib/monitor-nm-state-gdbus.c b/examples/C/glib/monitor-nm-state-gdbus.c
index 223d7c26bc..e7c23ca27a 100644
--- a/examples/C/glib/monitor-nm-state-gdbus.c
+++ b/examples/C/glib/monitor-nm-state-gdbus.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+
/*
- * Copyright 2012 Red Hat, Inc.
+ * Copyright (C) 2012 Red Hat, Inc.
*/
/*
diff --git a/examples/C/qt/add-connection-wired.cpp b/examples/C/qt/add-connection-wired.cpp
index df0a2ef369..97f544eef3 100644
--- a/examples/C/qt/add-connection-wired.cpp
+++ b/examples/C/qt/add-connection-wired.cpp
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+
/*
- * (C) Copyright 2011 Eckhart Wörner
+ * Copyright (C) 2011 Eckhart Wörner
*/
/*
diff --git a/examples/C/qt/change-ipv4-addresses.cpp b/examples/C/qt/change-ipv4-addresses.cpp
index 0fd4bde41c..4c42a6b68e 100644
--- a/examples/C/qt/change-ipv4-addresses.cpp
+++ b/examples/C/qt/change-ipv4-addresses.cpp
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+
/*
- * (C) Copyright 2011 Red Hat, Inc.
+ * Copyright (C) 2011 Red Hat, Inc.
*/
/*
diff --git a/examples/C/qt/list-connections.cpp b/examples/C/qt/list-connections.cpp
index 3b7bb7114b..70831ad57a 100644
--- a/examples/C/qt/list-connections.cpp
+++ b/examples/C/qt/list-connections.cpp
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+
/*
- * (C) Copyright 2011 Eckhart Wörner
+ * Copyright (C) 2011 Eckhart Wörner
*/
/*
diff --git a/examples/C/qt/monitor-nm-running.cpp b/examples/C/qt/monitor-nm-running.cpp
index c849ca1877..ace29698fc 100644
--- a/examples/C/qt/monitor-nm-running.cpp
+++ b/examples/C/qt/monitor-nm-running.cpp
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0+
/*
- * (C) Copyright 2012 Red Hat, Inc.
+ * Copyright (C) 2012 Red Hat, Inc.
*/
/*
diff --git a/examples/dispatcher/70-wifi-wired-exclusive.sh b/examples/dispatcher/70-wifi-wired-exclusive.sh
index fac18b59dd..b8a2336ef2 100755
--- a/examples/dispatcher/70-wifi-wired-exclusive.sh
+++ b/examples/dispatcher/70-wifi-wired-exclusive.sh
@@ -4,8 +4,8 @@
# Wi-Fi will be set to airplane mode (rfkilled). When the wired
# interface is disconnected, Wi-Fi will be turned back on.
#
-# Copyright 2012 Johannes Buchner <buchner.johannes@gmx.at>
-# Copyright 2012 - 2014 Red Hat, Inc.
+# Copyright (C) 2012 Johannes Buchner <buchner.johannes@gmx.at>
+# Copyright (C) 2012 - 2014 Red Hat, Inc.
#
export LC_ALL=C
diff --git a/examples/js/get_ips.js b/examples/js/get_ips.js
index b7d5792ff0..7d3c436edf 100755
--- a/examples/js/get_ips.js
+++ b/examples/js/get_ips.js
@@ -1,7 +1,7 @@
#!/usr/bin/env gjs
// SPDX-License-Identifier: GPL-2.0+
/*
- * Copyright 2014,2017 Red Hat, Inc.
+ * Copyright (C) 2014, 2017 Red Hat, Inc.
*/
const System = imports.system;
diff --git a/examples/lua/lgi/add-connection.lua b/examples/lua/lgi/add-connection.lua
index f85d47f2e8..14871aa4a8 100755
--- a/examples/lua/lgi/add-connection.lua
+++ b/examples/lua/lgi/add-connection.lua
@@ -1,7 +1,7 @@
#!/usr/bin/env lua
-- SPDX-License-Identifier: GPL-2.0+
--
--- Copyright 2015 Red Hat, Inc.
+-- Copyright (C) 2015 Red Hat, Inc.
--
-- Adding an Ethernet connection to NetworkManager in Lua.
diff --git a/examples/lua/lgi/change-vpn-username.lua b/examples/lua/lgi/change-vpn-username.lua
index 558d11fdf8..3b607c0585 100755
--- a/examples/lua/lgi/change-vpn-username.lua
+++ b/examples/lua/lgi/change-vpn-username.lua
@@ -1,7 +1,7 @@
#!/usr/bin/env lua
-- SPDX-License-Identifier: GPL-2.0+
--
--- Copyright 2015 Red Hat, Inc.
+-- Copyright (C) 2015 Red Hat, Inc.
--
-- This example changes username in a VPN profile.
diff --git a/examples/lua/lgi/deactivate-all.lua b/examples/lua/lgi/deactivate-all.lua
index ea416773ab..6d53956d36 100755
--- a/examples/lua/lgi/deactivate-all.lua
+++ b/examples/lua/lgi/deactivate-all.lua
@@ -1,7 +1,7 @@
#!/usr/bin/env lua
-- SPDX-License-Identifier: GPL-2.0+
--
--- Copyright 2015 Red Hat, Inc.
+-- Copyright (C) 2015 Red Hat, Inc.
--
-- Deactivate all active connections (of certain type).
diff --git a/examples/lua/lgi/get-basic-nm-info.lua b/examples/lua/lgi/get-basic-nm-info.lua
index 038916f88a..5c99461d96 100755
--- a/examples/lua/lgi/get-basic-nm-info.lua
+++ b/examples/lua/lgi/get-basic-nm-info.lua
@@ -1,7 +1,7 @@
#!/usr/bin/env lua
-- SPDX-License-Identifier: GPL-2.0+
--
--- Copyright 2015 Red Hat, Inc.
+-- Copyright (C) 2015 Red Hat, Inc.
--
-- This example gets basic information about NetworkManager.
diff --git a/examples/lua/lgi/get-ips.lua b/examples/lua/lgi/get-ips.lua
index e909fe8201..916dcea0d0 100755
--- a/examples/lua/lgi/get-ips.lua
+++ b/examples/lua/lgi/get-ips.lua
@@ -1,7 +1,7 @@
#!/usr/bin/env lua
-- SPDX-License-Identifier: GPL-2.0+
--
--- Copyright 2015 Red Hat, Inc.
+-- Copyright (C) 2015 Red Hat, Inc.
--
-- This example shows how to get addresses, routes and DNS information from
diff --git a/examples/lua/lgi/list-connections.lua b/examples/lua/lgi/list-connections.lua
index f22bcef395..fc62e12dc2 100755
--- a/examples/lua/lgi/list-connections.lua
+++ b/examples/lua/lgi/list-connections.lua
@@ -1,7 +1,7 @@
#!/usr/bin/env lua
-- SPDX-License-Identifier: GPL-2.0+
--
--- Copyright 2015 Red Hat, Inc.
+-- Copyright (C) 2015 Red Hat, Inc.
--
-- Getting and printing all NetworkManager connection in Lua.
diff --git a/examples/lua/lgi/list-devices.lua b/examples/lua/lgi/list-devices.lua
index 9f87d3e3be..3502345366 100755
--- a/examples/lua/lgi/list-devices.lua
+++ b/examples/lua/lgi/list-devices.lua
@@ -1,7 +1,7 @@
#!/usr/bin/env lua
-- SPDX-License-Identifier: GPL-2.0+
--
--- Copyright 2015 Red Hat, Inc.
+-- Copyright (C) 2015 Red Hat, Inc.
--
-- Getting basic information about network interfaces known to NetworkManager.
diff --git a/examples/lua/lgi/show-wifi-networks.lua b/examples/lua/lgi/show-wifi-networks.lua
index d1f24a4770..8fecc74132 100755
--- a/examples/lua/lgi/show-wifi-networks.lua
+++ b/examples/lua/lgi/show-wifi-networks.lua
@@ -1,7 +1,7 @@
#!/usr/bin/env lua
-- SPDX-License-Identifier: GPL-2.0+
--
--- Copyright 2015 Red Hat, Inc.
+-- Copyright (C) 2015 Red Hat, Inc.
--
-- This example lists Wi-Fi access points NetworkManager scanned on Wi-Fi devices.
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.
#
#