aboutsummaryrefslogtreecommitdiff
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)
downloadsyncthing-dd3080e01857bd78fe5e5d98f9025e362a9640df.tar.gz
syncthing-dd3080e01857bd78fe5e5d98f9025e362a9640df.zip
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 66c06cbb1..759464212 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 2e300652d..094bbf9dd 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 b31e99935..f5eaad833 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 8bbbf99d0..3f7ea0077 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 48c20fc85..d9fc07545 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 9273879e9..262f93671 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 b896f895b..5c5f1b426 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 a71a5067c..0dee64e75 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 9c5c11bd3..0f3cbf2ce 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 47f6a48e7..2feb976f7 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 802ffa2f0..ce08500be 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 c7baa6a88..231d8bc20 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 bf3f99a70..6161180f4 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 f71579fd7..7691b75da 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 fe90c29a6..26a0b9228 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 2313baaa1..feb7ad389 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 ef479ec3c..b3151d40b 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 ca9950d14..5b861b6de 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 3d9f6e942..95ccdd9b0 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 (