From 36571a0a3f754e93576baca4d06b44806c2495a8 Mon Sep 17 00:00:00 2001 From: Kris De Volder Date: Thu, 12 Jan 2017 13:32:18 -0800 Subject: [PATCH] Add script for adding missing copyrights in bulk --- fix-copyright.sh | 7 +++++++ java-copyright-header.txt | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 fix-copyright.sh create mode 100644 java-copyright-header.txt diff --git a/fix-copyright.sh b/fix-copyright.sh new file mode 100644 index 000000000..3a3cd0cf1 --- /dev/null +++ b/fix-copyright.sh @@ -0,0 +1,7 @@ +#!/bin/bash +grep -r --exclude-dir=resources --exclude-dir=target -L --include="*.java" "\* Copyright" > missing-copyright.txt + +for i in `cat missing-copyright.txt` ; do + echo Fixing $i + cat java-copyright-header.txt "$i" > $i +done diff --git a/java-copyright-header.txt b/java-copyright-header.txt new file mode 100644 index 000000000..e61819e53 --- /dev/null +++ b/java-copyright-header.txt @@ -0,0 +1,11 @@ +/******************************************************************************* + * Copyright (c) 2016-2017 Pivotal, Inc. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Pivotal, Inc. - initial API and implementation + *******************************************************************************/ +