From a4480e4db630a25ac0b7f80c89d25d28c06eb969 Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Wed, 13 Apr 2022 10:32:22 -0400 Subject: [PATCH] [releng] new script to update all legal files Change-Id: Ica07264a13015e81237e71f3b9cd3f3d5f20183b --- releng/scripts/update_legal_files.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 releng/scripts/update_legal_files.sh diff --git a/releng/scripts/update_legal_files.sh b/releng/scripts/update_legal_files.sh new file mode 100755 index 00000000000..cfc1409f784 --- /dev/null +++ b/releng/scripts/update_legal_files.sh @@ -0,0 +1,21 @@ +#!/bin/bash +############################################################################### +# Copyright (c) 2018, 2022 Kichwa Coders Ltd and others. +# +# This program and the accompanying materials +# are made available under the terms of the Eclipse Public License 2.0 +# which accompanies this distribution, and is available at +# https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +############################################################################### + + +mkdir -p /tmp/eplv2 +curl -s https://www.eclipse.org/legal/epl/epl-2.0/about.html > /tmp/eplv2/about.html +curl -s http://www.eclipse.org/legal/epl/notice.html > /tmp/eplv2/notice.html +curl -s http://www.eclipse.org/legal/epl/notice.html > /tmp/eplv2/license.html + +find . -name about.html -exec cp /tmp/eplv2/about.html {} \; +find . -name license.html -exec cp /tmp/eplv2/license.html {} \; +find . -name notice.html -exec cp /tmp/eplv2/notice.html {} \;