NetworkManager/shared/systemd/sd-adapt-shared
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
..
architecture.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
btrfs-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
build.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
cgroup-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
copy.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
def.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
device-nodes.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
dirent-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
errno-list.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
format-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
glob-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
gunicode.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
ioprio.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
locale-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
memfd-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
missing.h systemd: merge branch systemd into master 2019-04-04 09:49:37 +02:00
missing_syscall.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
missing_timerfd.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
mkdir.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
namespace-util.h systemd: merge branch systemd into master 2019-04-04 09:49:37 +02:00
nm-sd-adapt-shared.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nulstr-util.h systemd: merge branch systemd into master 2019-04-04 09:49:37 +02:00
procfs-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
raw-clone.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
rlimit-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
terminal-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
unaligned.h shared: split C-only helper "shared/nm-std-aux" utils out of "shared/nm-utils" 2019-04-18 19:17:23 +02:00
user-util.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00
virt.h systemd: move basic systemd library to shared/nm-utils 2019-01-02 17:07:13 +01:00