summaryrefslogtreecommitdiff
path: root/shared/nm-libnm-core-intern
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 /shared/nm-libnm-core-intern
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 'shared/nm-libnm-core-intern')
-rw-r--r--shared/nm-libnm-core-intern/nm-common-macros.h2
-rw-r--r--shared/nm-libnm-core-intern/nm-ethtool-utils.c2
-rw-r--r--shared/nm-libnm-core-intern/nm-ethtool-utils.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/shared/nm-libnm-core-intern/nm-common-macros.h b/shared/nm-libnm-core-intern/nm-common-macros.h
index bcd58fa86e..5c50d98913 100644
--- a/shared/nm-libnm-core-intern/nm-common-macros.h
+++ b/shared/nm-libnm-core-intern/nm-common-macros.h
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1+
/*
- * (C) Copyright 2016 Red Hat, Inc.
+ * Copyright (C) 2016 Red Hat, Inc.
*/
#ifndef __NM_COMMON_MACROS_H__
diff --git a/shared/nm-libnm-core-intern/nm-ethtool-utils.c b/shared/nm-libnm-core-intern/nm-ethtool-utils.c
index 8b292c29d1..2bc182cf15 100644
--- a/shared/nm-libnm-core-intern/nm-ethtool-utils.c
+++ b/shared/nm-libnm-core-intern/nm-ethtool-utils.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1+
/*
- * Copyright 2018 Red Hat, Inc.
+ * Copyright (C) 2018 Red Hat, Inc.
*/
#include "nm-default.h"
diff --git a/shared/nm-libnm-core-intern/nm-ethtool-utils.h b/shared/nm-libnm-core-intern/nm-ethtool-utils.h
index f934f1181e..463d8e8f12 100644
--- a/shared/nm-libnm-core-intern/nm-ethtool-utils.h
+++ b/shared/nm-libnm-core-intern/nm-ethtool-utils.h
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: LGPL-2.1+
/*
- * Copyright 2018 Red Hat, Inc.
+ * Copyright (C) 2018 Red Hat, Inc.
*/
#ifndef __NM_ETHTOOL_UTILS_H__