1// Copyright © 2015 Steve Francia <spf@spf13.com>. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// http://www.apache.org/licenses/LICENSE-2.0 7// 8// Unless required by applicable law or agreed to in writing, software 9// distributed under the License is distributed on an "AS IS" BASIS, 10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11// See the License for the specific language governing permissions and 12// limitations under the License. 13 14// Parts inspired by https://github.com/ryanuber/go-license 15 16package cmd 17 18func initBsdClause3() { 19 Licenses["bsd"] = License{ 20 Name: "NewBSD", 21 PossibleMatches: []string{"bsd", "newbsd", "3 clause bsd", "3-clause bsd"}, 22 Header: `All rights reserved. 23 24Redistribution and use in source and binary forms, with or without 25modification, are permitted provided that the following conditions are met: 26 271. Redistributions of source code must retain the above copyright notice, 28 this list of conditions and the following disclaimer. 29 302. Redistributions in binary form must reproduce the above copyright notice, 31 this list of conditions and the following disclaimer in the documentation 32 and/or other materials provided with the distribution. 33 343. Neither the name of the copyright holder nor the names of its contributors 35 may be used to endorse or promote products derived from this software 36 without specific prior written permission. 37 38THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 39AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 40IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 41ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 42LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 43CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 44SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 45INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 46CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 47ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 48POSSIBILITY OF SUCH DAMAGE.`, 49 Text: `{{ .copyright }} 50All rights reserved. 51 52Redistribution and use in source and binary forms, with or without 53modification, are permitted provided that the following conditions are met: 54 551. Redistributions of source code must retain the above copyright notice, 56 this list of conditions and the following disclaimer. 57 582. Redistributions in binary form must reproduce the above copyright notice, 59 this list of conditions and the following disclaimer in the documentation 60 and/or other materials provided with the distribution. 61 623. Neither the name of the copyright holder nor the names of its contributors 63 may be used to endorse or promote products derived from this software 64 without specific prior written permission. 65 66THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 67AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 68IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 69DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 70FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 71DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 72SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 73CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 74OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 75OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 76`, 77 } 78} 79