Marcel Telka
2022-11-24 1764dee75e24e2b95661fdd35739d4da5c096966
tools/license-detector: add Apache-2.0 license header

2 files added
33 ■■■■■ changed files
tools/licenses/header.Apache-2.0 13 ●●●●● patch | view | raw | blame | history
tools/licenses/header.Apache-2.0.filter 20 ●●●●● patch | view | raw | blame | history
tools/licenses/header.Apache-2.0
New file
@@ -0,0 +1,13 @@
   Copyright [yyyy] [name of copyright owner]
   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.
tools/licenses/header.Apache-2.0.filter
New file
@@ -0,0 +1,20 @@
#! /usr/bin/sh
#
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
#
# Copyright 2022 Marcel Telka
#
sed -n \
    -e 's/\(Copyright\) .*/\1 REPLACEABLE/' \
    -e '/^Copyright/,/^Unless required by applicable law or agreed to in writing,/p'