Skip to content

Commit 3f047be

Browse files
committed
all: update license headers to distiguish GPL/LGPL
All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
1 parent f4acdea commit 3f047be

328 files changed

Lines changed: 1330 additions & 1274 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎accounts/abi/abi.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// Copyright 2015 The go-ethereum Authors
2-
// This file is part of go-ethereum.
2+
// This file is part of the go-ethereum library.
33
//
44
// go-ethereum is free software: you can redistribute it and/or modify
55
// it under the terms of the GNU Lesser General Public License as published by
66
// the Free Software Foundation, either version 3 of the License, or
77
// (at your option) any later version.
88
//
9-
// go-ethereum is distributed in the hope that it will be useful,
9+
// The go-ethereum library is distributed in the hope that it will be useful,
1010
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
// GNU Lesser General Public License for more details.
1313
//
1414
// You should have received a copy of the GNU Lesser General Public License
15-
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
15+
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

1717
package abi
1818

‎accounts/abi/abi_test.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// Copyright 2015 The go-ethereum Authors
2-
// This file is part of go-ethereum.
2+
// This file is part of the go-ethereum library.
33
//
44
// go-ethereum is free software: you can redistribute it and/or modify
55
// it under the terms of the GNU Lesser General Public License as published by
66
// the Free Software Foundation, either version 3 of the License, or
77
// (at your option) any later version.
88
//
9-
// go-ethereum is distributed in the hope that it will be useful,
9+
// The go-ethereum library is distributed in the hope that it will be useful,
1010
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
// GNU Lesser General Public License for more details.
1313
//
1414
// You should have received a copy of the GNU Lesser General Public License
15-
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
15+
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

1717
package abi
1818

‎accounts/abi/doc.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// Copyright 2015 The go-ethereum Authors
2-
// This file is part of go-ethereum.
2+
// This file is part of the go-ethereum library.
33
//
44
// go-ethereum is free software: you can redistribute it and/or modify
55
// it under the terms of the GNU Lesser General Public License as published by
66
// the Free Software Foundation, either version 3 of the License, or
77
// (at your option) any later version.
88
//
9-
// go-ethereum is distributed in the hope that it will be useful,
9+
// The go-ethereum library is distributed in the hope that it will be useful,
1010
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
// GNU Lesser General Public License for more details.
1313
//
1414
// You should have received a copy of the GNU Lesser General Public License
15-
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
15+
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

1717
// Package abi implements the Ethereum ABI (Application Binary
1818
// Interface).

‎accounts/abi/numbers.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// Copyright 2015 The go-ethereum Authors
2-
// This file is part of go-ethereum.
2+
// This file is part of the go-ethereum library.
33
//
44
// go-ethereum is free software: you can redistribute it and/or modify
55
// it under the terms of the GNU Lesser General Public License as published by
66
// the Free Software Foundation, either version 3 of the License, or
77
// (at your option) any later version.
88
//
9-
// go-ethereum is distributed in the hope that it will be useful,
9+
// The go-ethereum library is distributed in the hope that it will be useful,
1010
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
// GNU Lesser General Public License for more details.
1313
//
1414
// You should have received a copy of the GNU Lesser General Public License
15-
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
15+
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

1717
package abi
1818

‎accounts/abi/numbers_test.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// Copyright 2015 The go-ethereum Authors
2-
// This file is part of go-ethereum.
2+
// This file is part of the go-ethereum library.
33
//
44
// go-ethereum is free software: you can redistribute it and/or modify
55
// it under the terms of the GNU Lesser General Public License as published by
66
// the Free Software Foundation, either version 3 of the License, or
77
// (at your option) any later version.
88
//
9-
// go-ethereum is distributed in the hope that it will be useful,
9+
// The go-ethereum library is distributed in the hope that it will be useful,
1010
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
// GNU Lesser General Public License for more details.
1313
//
1414
// You should have received a copy of the GNU Lesser General Public License
15-
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
15+
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

1717
package abi
1818

‎accounts/abi/type.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// Copyright 2015 The go-ethereum Authors
2-
// This file is part of go-ethereum.
2+
// This file is part of the go-ethereum library.
33
//
44
// go-ethereum is free software: you can redistribute it and/or modify
55
// it under the terms of the GNU Lesser General Public License as published by
66
// the Free Software Foundation, either version 3 of the License, or
77
// (at your option) any later version.
88
//
9-
// go-ethereum is distributed in the hope that it will be useful,
9+
// The go-ethereum library is distributed in the hope that it will be useful,
1010
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
// GNU Lesser General Public License for more details.
1313
//
1414
// You should have received a copy of the GNU Lesser General Public License
15-
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
15+
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

1717
package abi
1818

‎accounts/account_manager.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// Copyright 2015 The go-ethereum Authors
2-
// This file is part of go-ethereum.
2+
// This file is part of the go-ethereum library.
33
//
44
// go-ethereum is free software: you can redistribute it and/or modify
55
// it under the terms of the GNU Lesser General Public License as published by
66
// the Free Software Foundation, either version 3 of the License, or
77
// (at your option) any later version.
88
//
9-
// go-ethereum is distributed in the hope that it will be useful,
9+
// The go-ethereum library is distributed in the hope that it will be useful,
1010
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
// GNU Lesser General Public License for more details.
1313
//
1414
// You should have received a copy of the GNU Lesser General Public License
15-
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
15+
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

1717
// Package implements a private key management facility.
1818
//

‎accounts/accounts_test.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// Copyright 2015 The go-ethereum Authors
2-
// This file is part of go-ethereum.
2+
// This file is part of the go-ethereum library.
33
//
44
// go-ethereum is free software: you can redistribute it and/or modify
55
// it under the terms of the GNU Lesser General Public License as published by
66
// the Free Software Foundation, either version 3 of the License, or
77
// (at your option) any later version.
88
//
9-
// go-ethereum is distributed in the hope that it will be useful,
9+
// The go-ethereum library is distributed in the hope that it will be useful,
1010
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
// GNU Lesser General Public License for more details.
1313
//
1414
// You should have received a copy of the GNU Lesser General Public License
15-
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
15+
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

1717
package accounts
1818

‎build/update-license.go‎

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,20 @@ var (
6666
// its input is an info structure.
6767
var licenseT = template.Must(template.New("").Parse(`
6868
// Copyright {{.Year}} The go-ethereum Authors
69-
// This file is part of go-ethereum.
69+
// This file is part of {{.Whole false}}.
7070
//
7171
// go-ethereum is free software: you can redistribute it and/or modify
7272
// it under the terms of the GNU {{.License}} as published by
7373
// the Free Software Foundation, either version 3 of the License, or
7474
// (at your option) any later version.
7575
//
76-
// go-ethereum is distributed in the hope that it will be useful,
76+
// {{.Whole true}} is distributed in the hope that it will be useful,
7777
// but WITHOUT ANY WARRANTY; without even the implied warranty of
78-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
78+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7979
// GNU {{.License}} for more details.
8080
//
8181
// You should have received a copy of the GNU {{.License}}
82-
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
82+
// along with {{.Whole false}}. If not, see <http://www.gnu.org/licenses/>.
8383
8484
`[1:]))
8585

@@ -91,17 +91,25 @@ type info struct {
9191
func (i info) License() string {
9292
if i.gpl() {
9393
return "General Public License"
94-
} else {
95-
return "Lesser General Public License"
9694
}
95+
return "Lesser General Public License"
9796
}
9897

9998
func (i info) ShortLicense() string {
10099
if i.gpl() {
101100
return "GPL"
102-
} else {
103-
return "LGPL"
104101
}
102+
return "LGPL"
103+
}
104+
105+
func (i info) Whole(startOfSentence bool) string {
106+
if i.gpl() {
107+
return "go-ethereum"
108+
}
109+
if startOfSentence {
110+
return "The go-ethereum library"
111+
}
112+
return "the go-ethereum library"
105113
}
106114

107115
func (i info) gpl() bool {

‎cmd/bootnode/main.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
//
99
// go-ethereum is distributed in the hope that it will be useful,
1010
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
// GNU General Public License for more details.
1313
//
1414
// You should have received a copy of the GNU General Public License
15-
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
15+
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
1616

1717
// bootnode runs a bootstrap node for the Ethereum Discovery Protocol.
1818
package main

0 commit comments

Comments
 (0)