Add script for adding missing copyrights in bulk
This commit is contained in:
7
fix-copyright.sh
Normal file
7
fix-copyright.sh
Normal 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
11
java-copyright-header.txt
Normal 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
|
||||
*******************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user