summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-09-04 08:31:38 +0200
committerJakob Borg <jakob@nym.se>2014-09-04 08:31:38 +0200
commitdd3080e01857bd78fe5e5d98f9025e362a9640df (patch)
treeb67faf240f82d1bf7abd83554e0f543bcfc06a4a
parent5915e8e86ada284d9e55b5a8b91de11a36f90b88 (diff)
Copyright cleanup
-rw-r--r--auto/doc.go4
-rwxr-xr-xcheck-contrib.sh15
-rw-r--r--cmd/syncthing/gui_csrf.go4
-rw-r--r--cmd/syncthing/memsize_darwin.go4
-rw-r--r--cmd/syncthing/memsize_linux.go4
-rw-r--r--cmd/syncthing/memsize_solaris.go4
-rw-r--r--cmd/syncthing/memsize_unimpl.go4
-rw-r--r--cmd/syncthing/memsize_windows.go4
-rw-r--r--cmd/syncthing/monitor.go4
-rw-r--r--cmd/syncthing/usage_report.go4
-rw-r--r--files/filenames_darwin.go4
-rw-r--r--files/filenames_unix.go4
-rw-r--r--files/filenames_windows.go4
-rw-r--r--files/leveldb.go4
-rw-r--r--luhn/luhn.go4
-rw-r--r--luhn/luhn_test.go4
-rw-r--r--protocol/nodeid.go4
-rw-r--r--protocol/nodeid_test.go4
-rw-r--r--upnp/upnp_test.go4
19 files changed, 84 insertions, 3 deletions
diff --git a/auto/doc.go b/auto/doc.go
index 66c06cbb1b..7594642124 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 2e300652d8..094bbf9dd8 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 b31e99935f..f5eaad833e 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 8bbbf99d0a..3f7ea0077d 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 48c20fc85b..d9fc075459 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 9273879e95..262f93671c 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 b896f895b2..5c5f1b426e 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 a71a5067c7..0dee64e75c 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 9c5c11bd32..0f3cbf2ce9 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 47f6a48e70..2feb976f77 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 802ffa2f05..ce08500bea 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 c7baa6a888..231d8bc20e 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 bf3f99a70c..6161180f4d 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 f71579fd7c..7691b75da9 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 fe90c29a6d..26a0b92287 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 2313baaa1d..feb7ad3894 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 ef479ec3c9..b3151d40b9 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 ca9950d140..5b861b6ded 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 3d9f6e9429..95ccdd9b01 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 (