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