diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-08-06 00:08:52 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-08-06 00:08:52 +0800 |
commit | 80e5f507130a926ea62dde07c2b98d6f8a0ba3e2 (patch) | |
tree | 750fe404c14b6f5e8ef03a07cf3357787c6c9683 /build/update-license.go | |
parent | 98f4c936f25de27dbc90f36f2c1ffd1f23b114e9 (diff) | |
parent | 26f838796b8793f38268f3a8911ec2b71913153c (diff) | |
download | dexon-80e5f507130a926ea62dde07c2b98d6f8a0ba3e2.tar dexon-80e5f507130a926ea62dde07c2b98d6f8a0ba3e2.tar.gz dexon-80e5f507130a926ea62dde07c2b98d6f8a0ba3e2.tar.bz2 dexon-80e5f507130a926ea62dde07c2b98d6f8a0ba3e2.tar.lz dexon-80e5f507130a926ea62dde07c2b98d6f8a0ba3e2.tar.xz dexon-80e5f507130a926ea62dde07c2b98d6f8a0ba3e2.tar.zst dexon-80e5f507130a926ea62dde07c2b98d6f8a0ba3e2.zip |
Merge branch 'develop'
Diffstat (limited to 'build/update-license.go')
-rw-r--r-- | build/update-license.go | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/build/update-license.go b/build/update-license.go index abb17f872..e28005cbd 100644 --- a/build/update-license.go +++ b/build/update-license.go @@ -48,6 +48,7 @@ var ( "Godeps/", "tests/files/", "build/", // don't relicense vendored packages "crypto/sha3/", "crypto/ecies/", "logger/glog/", + "crypto/curve.go", } // paths with this prefix are licensed as GPL. all other files are LGPL. @@ -65,20 +66,20 @@ var ( // its input is an info structure. var licenseT = template.Must(template.New("").Parse(` // Copyright {{.Year}} The go-ethereum Authors -// This file is part of go-ethereum. +// This file is part of {{.Whole false}}. // -// go-ethereum is free software: you can redistribute it and/or modify +// {{.Whole true}} is free software: you can redistribute it and/or modify // it under the terms of the GNU {{.License}} as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // -// go-ethereum is distributed in the hope that it will be useful, +// {{.Whole true}} is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU {{.License}} for more details. // // You should have received a copy of the GNU {{.License}} -// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>. +// along with {{.Whole false}}. If not, see <http://www.gnu.org/licenses/>. `[1:])) @@ -90,17 +91,25 @@ type info struct { func (i info) License() string { if i.gpl() { return "General Public License" - } else { - return "Lesser General Public License" } + return "Lesser General Public License" } func (i info) ShortLicense() string { if i.gpl() { return "GPL" - } else { - return "LGPL" } + return "LGPL" +} + +func (i info) Whole(startOfSentence bool) string { + if i.gpl() { + return "go-ethereum" + } + if startOfSentence { + return "The go-ethereum library" + } + return "the go-ethereum library" } func (i info) gpl() bool { |