Add script for adding missing copyrights in bulk

This commit is contained in:
Kris De Volder
2017-01-12 13:32:18 -08:00
parent b996f328fc
commit 36571a0a3f
2 changed files with 18 additions and 0 deletions

7
fix-copyright.sh Normal file
View File

@@ -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

11
java-copyright-header.txt Normal file
View File

@@ -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
*******************************************************************************/