NetworkManager/clients/tui
Thomas Haller 3b69f02164 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
2019-10-02 17:03:52 +02:00
..
newt all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
meson.build meson: Improve nmtui and libnmt-newt build 2019-10-01 09:49:33 +02:00
nm-editor-bindings.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-editor-bindings.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-editor-utils.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-editor-utils.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-address-list.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-address-list.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-connect-connection-list.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-connect-connection-list.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-device-entry.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-device-entry.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-edit-connection-list.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-edit-connection-list.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-editor-grid.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-editor-grid.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-editor-page-device.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-editor-page-device.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-editor-page.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-editor-page.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-editor-section.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-editor-section.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-editor.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-editor.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-ip-entry.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-ip-entry.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-mac-entry.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-mac-entry.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-mtu-entry.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-mtu-entry.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-bond.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-bond.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-bridge-port.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-bridge-port.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-bridge.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-bridge.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-dsl.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-dsl.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-ethernet.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-ethernet.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-infiniband.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-infiniband.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-ip-tunnel.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-ip-tunnel.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-ip4.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-ip4.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-ip6.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-ip6.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-ppp.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-ppp.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-team-port.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-team-port.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-team.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-team.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-vlan.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-vlan.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-wifi.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-page-wifi.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-password-dialog.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-password-dialog.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-password-fields.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-password-fields.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-route-editor.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-route-editor.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-route-entry.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-route-entry.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-route-table.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-route-table.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-slave-list.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-slave-list.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-utils.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-utils.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-widget-list.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmt-widget-list.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmtui-connect.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmtui-connect.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmtui-edit.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmtui-edit.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmtui-hostname.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmtui-hostname.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmtui.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nmtui.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00