From dd3080e01857bd78fe5e5d98f9025e362a9640df Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 4 Sep 2014 08:31:38 +0200 Subject: [PATCH] Copyright cleanup --- auto/doc.go | 4 ++++ check-contrib.sh | 15 ++++++++++++--- cmd/syncthing/gui_csrf.go | 4 ++++ cmd/syncthing/memsize_darwin.go | 4 ++++ cmd/syncthing/memsize_linux.go | 4 ++++ cmd/syncthing/memsize_solaris.go | 4 ++++ cmd/syncthing/memsize_unimpl.go | 4 ++++ cmd/syncthing/memsize_windows.go | 4 ++++ cmd/syncthing/monitor.go | 4 ++++ cmd/syncthing/usage_report.go | 4 ++++ files/filenames_darwin.go | 4 ++++ files/filenames_unix.go | 4 ++++ files/filenames_windows.go | 4 ++++ files/leveldb.go | 4 ++++ luhn/luhn.go | 4 ++++ luhn/luhn_test.go | 4 ++++ protocol/nodeid.go | 4 ++++ protocol/nodeid_test.go | 4 ++++ upnp/upnp_test.go | 4 ++++ 19 files changed, 84 insertions(+), 3 deletions(-) diff --git a/auto/doc.go b/auto/doc.go index 66c06cbb..75946421 100644 --- a/auto/doc.go +++ b/auto/doc.go @@ -1,2 +1,6 @@ +// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file). +// All rights reserved. Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + // Package auto contains auto generated files for web assets. package auto diff --git a/check-contrib.sh b/check-contrib.sh index 2e300652..094bbf9d 100755 --- a/check-contrib.sh +++ b/check-contrib.sh @@ -14,7 +14,16 @@ no-docs-typos() { grep -v f1120d7aa936c0658429edef0037792520b46334 } -for email in $(missing-contribs) ; do - git log --author="$email" --format="%H %ae %s" | no-docs-typos -done +print-missing-contribs() { + for email in $(missing-contribs) ; do + git log --author="$email" --format="%H %ae %s" | no-docs-typos + done +} + +print-missing-copyright() { + find . -name \*.go | xargs grep -L 'Copyright (C)' | grep -v Godeps +} + +print-missing-contribs +print-missing-copyright diff --git a/cmd/syncthing/gui_csrf.go b/cmd/syncthing/gui_csrf.go index b31e9993..f5eaad83 100644 --- a/cmd/syncthing/gui_csrf.go +++ b/cmd/syncthing/gui_csrf.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file). +// All rights reserved. Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + package main import ( diff --git a/cmd/syncthing/memsize_darwin.go b/cmd/syncthing/memsize_darwin.go index 8bbbf99d..3f7ea007 100644 --- a/cmd/syncthing/memsize_darwin.go +++ b/cmd/syncthing/memsize_darwin.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file). +// All rights reserved. Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + package main import ( diff --git a/cmd/syncthing/memsize_linux.go b/cmd/syncthing/memsize_linux.go index 48c20fc8..d9fc0754 100644 --- a/cmd/syncthing/memsize_linux.go +++ b/cmd/syncthing/memsize_linux.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file). +// All rights reserved. Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + package main import ( diff --git a/cmd/syncthing/memsize_solaris.go b/cmd/syncthing/memsize_solaris.go index 9273879e..262f9367 100644 --- a/cmd/syncthing/memsize_solaris.go +++ b/cmd/syncthing/memsize_solaris.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file). +// All rights reserved. Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + // +build solaris package main diff --git a/cmd/syncthing/memsize_unimpl.go b/cmd/syncthing/memsize_unimpl.go index b896f895..5c5f1b42 100644 --- a/cmd/syncthing/memsize_unimpl.go +++ b/cmd/syncthing/memsize_unimpl.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file). +// All rights reserved. Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + // +build freebsd package main diff --git a/cmd/syncthing/memsize_windows.go b/cmd/syncthing/memsize_windows.go index a71a5067..0dee64e7 100644 --- a/cmd/syncthing/memsize_windows.go +++ b/cmd/syncthing/memsize_windows.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file). +// All rights reserved. Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + package main import ( diff --git a/cmd/syncthing/monitor.go b/cmd/syncthing/monitor.go index 9c5c11bd..0f3cbf2c 100644 --- a/cmd/syncthing/monitor.go +++ b/cmd/syncthing/monitor.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file). +// All rights reserved. Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + package main import ( diff --git a/cmd/syncthing/usage_report.go b/cmd/syncthing/usage_report.go index 47f6a48e..2feb976f 100644 --- a/cmd/syncthing/usage_report.go +++ b/cmd/syncthing/usage_report.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file). +// All rights reserved. Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + package main import ( diff --git a/files/filenames_darwin.go b/files/filenames_darwin.go index 802ffa2f..ce08500b 100644 --- a/files/filenames_darwin.go +++ b/files/filenames_darwin.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file). +// All rights reserved. Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + package files import "code.google.com/p/go.text/unicode/norm" diff --git a/files/filenames_unix.go b/files/filenames_unix.go index c7baa6a8..231d8bc2 100644 --- a/files/filenames_unix.go +++ b/files/filenames_unix.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file). +// All rights reserved. Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + // +build !windows,!darwin package files diff --git a/files/filenames_windows.go b/files/filenames_windows.go index bf3f99a7..6161180f 100644 --- a/files/filenames_windows.go +++ b/files/filenames_windows.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file). +// All rights reserved. Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + package files import ( diff --git a/files/leveldb.go b/files/leveldb.go index f71579fd..7691b75d 100644 --- a/files/leveldb.go +++ b/files/leveldb.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file). +// All rights reserved. Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + package files import ( diff --git a/luhn/luhn.go b/luhn/luhn.go index fe90c29a..26a0b922 100644 --- a/luhn/luhn.go +++ b/luhn/luhn.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file). +// All rights reserved. Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + // Package luhn generates and validates Luhn mod N check digits. package luhn diff --git a/luhn/luhn_test.go b/luhn/luhn_test.go index 2313baaa..feb7ad38 100644 --- a/luhn/luhn_test.go +++ b/luhn/luhn_test.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file). +// All rights reserved. Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + package luhn_test import ( diff --git a/protocol/nodeid.go b/protocol/nodeid.go index ef479ec3..b3151d40 100644 --- a/protocol/nodeid.go +++ b/protocol/nodeid.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file). +// All rights reserved. Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + package protocol import ( diff --git a/protocol/nodeid_test.go b/protocol/nodeid_test.go index ca9950d1..5b861b6d 100644 --- a/protocol/nodeid_test.go +++ b/protocol/nodeid_test.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file). +// All rights reserved. Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + package protocol import "testing" diff --git a/upnp/upnp_test.go b/upnp/upnp_test.go index 3d9f6e94..95ccdd9b 100644 --- a/upnp/upnp_test.go +++ b/upnp/upnp_test.go @@ -1,3 +1,7 @@ +// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file). +// All rights reserved. Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + package upnp import (