From 4fe996c2e7f157d521b5c8732e8b80e03bd25ff0 Mon Sep 17 00:00:00 2001 From: Andrew Jeffery Date: Tue, 27 Feb 2018 12:16:48 +1030 Subject: misc: Replace license blurb with kernel-style SPDX markers This was roughly achieved by the following shell script: $ git ls-files | grep '\.[ch]p*$' | while read F; do EXT=${F##*.}; cat spdx.$EXT <(sed '/^\/\*$/,/^ \*\/$/d' $F) > ${F}.tmp; mv ${F}.tmp $F; done With the following context: $ cat spdx.c // SPDX-License-Identifier: Apache-2.0 // Copyright (C) 2018 IBM Corp. $ cat spdx.h /* SPDX-License-Identifier: Apache-2.0 */ /* Copyright (C) 2018 IBM Corp. */ $ ls -l spdx.* -rw-r--r-- 1 andrew andrew 71 Feb 27 12:02 spdx.c lrwxrwxrwx 1 andrew andrew 6 Feb 27 12:02 spdx.cpp -> spdx.c -rw-r--r-- 1 andrew andrew 77 Feb 27 12:02 spdx.h lrwxrwxrwx 1 andrew andrew 6 Feb 27 12:02 spdx.hpp -> spdx.h The `sed` invocation catches a lot of function documentation, so the hunks were manually added to avoid removing information that we want to keep. Change-Id: I63e49ca2593aa0db0568c7a63bfdead388642e76 Signed-off-by: Andrew Jeffery --- mboxd_lpc.h | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'mboxd_lpc.h') diff --git a/mboxd_lpc.h b/mboxd_lpc.h index 2c38ab0..bd3e2b1 100644 --- a/mboxd_lpc.h +++ b/mboxd_lpc.h @@ -1,19 +1,5 @@ -/* - * Copyright 2016 IBM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ +/* SPDX-License-Identifier: Apache-2.0 */ +/* Copyright (C) 2018 IBM Corp. */ #ifndef MBOXD_LPC_H #define MBOXD_LPC_H -- cgit v1.2.1