From 931568fa2f549cf9d8ba08026ddabacea7ff0770 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 1 Jan 2020 08:46:18 +0100 Subject: [PATCH] license: relicense "shared/nm-test-utils-impl.c" under LGPL-2.1+ >>> H0=a3e75f329446a93a61ca4c458a7657bd919f4fe6 commit_has_file() { git ls-tree -r "$1" | grep -q "\\s$2"\$ } print_commit_authors() { git --no-pager log --full-history --follow --no-merges --pretty='format:<%ae>' $H0 -- "$1" | sort | uniq } print_blame_authors() { local LAST_H if commit_has_file $H0 "$1"; then LAST_H=$H0 else LAST_H="$(git log --full-history --no-merges -n1 --pretty='format:%H' $H0 -- "$1")"^1 fi git blame --no-progress -C -C -C20 -M -M10 -e "$LAST_H" -- "$1" | sed 's/.*\(<[^>]\+@[^>]\+>\).*/\1/' | sort | uniq } print_grep() { git --no-pager log -p --full-history --follow $H0 -- "$1" | grep -i '[a-z0-9]@\|author\|copyright' | sort | uniq } prefix() { sed "s/^/>>>$1 /" } collect_all() { for F; do print_commit_authors "$F" | prefix 1 echo print_blame_authors "$F" | prefix 2 echo print_grep "$F" | prefix 3 done | sort | uniq | sed 's/@/(at)/' } collect_all \ shared/nm-test-utils-impl.c \ include/nm-test-utils-impl.c \ libnm-glib/tests/common.c \ libnm-glib/tests/test-nm-client.c \ libnm-glib/tests/test-remote-settings-client.c \ ; <<< gives: >>>1 >>>1 >>>1 >>>1 >>>1 >>>1 >>>1 >>>1 >>>2 >>>2 >>>2 >>>2 >>>2 >>>2 >>>2 >>>2 >>>2 >>>2 >>>3 [...] Red Hat, Inc. Everybody in this list agreed to relicensing according to RELICENSE.md. With exception of . However with manual investigation I think there are no contributions by qiaomuf affected here. It's only the script that (wrongly) identified the name. --- shared/nm-test-utils-impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/nm-test-utils-impl.c b/shared/nm-test-utils-impl.c index 7b71484e59..0e0d97a494 100644 --- a/shared/nm-test-utils-impl.c +++ b/shared/nm-test-utils-impl.c @@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ +/* SPDX-License-Identifier: LGPL-2.1+ */ /* * Copyright (C) 2010 - 2015 Red Hat, Inc. */