Skip to content

Commit bc57d08

Browse files
committed
Properly declare BSD 2-clause licensing.
Refs #7.
1 parent ee19d9c commit bc57d08

File tree

21 files changed

+108
-0
lines changed

21 files changed

+108
-0
lines changed

LICENSE.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2017-2022 Carl Kittelberger
2+
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are met:
5+
6+
1. Redistributions of source code must retain the above copyright notice, this
7+
list of conditions and the following disclaimer.
8+
9+
2. Redistributions in binary form must reproduce the above copyright notice,
10+
this list of conditions and the following disclaimer in the documentation
11+
and/or other materials provided with the distribution.
12+
13+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
14+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
17+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
20+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
21+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
22+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,7 @@ go-bspatch "$your_old_file" "$your_new_file" "$the_generated"
8787
There is [a Go implementation of an older version of bsdiff called binarydist](https://github.com/kr/binarydist). The original bsdiff tool has since been updated so patches generating using the original tool are no longer compatible with the Go implementation. I don't know what the changes between the versions are and unfortunately I don't have the time to search for these changes and port them over as a pull request, otherwise I'd have done that instead.
8888

8989
Additionally, @mendsley has already done the extra work of rewriting the code to be embeddable in any application code as a library. So why not make use of cgo, which I was going to look into in more detail at some point anyways?
90+
91+
## License
92+
93+
Just like bsdiff, this project is licensed under the 2-clause BSD license (or Simplified BSD license). You can check [LICENSE.txt](LICENSE.txt) for more information.

cmd/go-bsdiff/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2017-2022 Carl Kittelberger.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE.txt file.
4+
15
package main
26

37
import (

cmd/go-bspatch/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2017-2022 Carl Kittelberger.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE.txt file.
4+
15
package main
26

37
import (

diff/diff.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2017-2022 Carl Kittelberger.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE.txt file.
4+
15
package diff
26

37
import (

internal/magic.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2017-2022 Carl Kittelberger.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE.txt file.
4+
15
package internal
26

37
import (

internal/native/cgo.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright (c) 2017-2022 Carl Kittelberger.
3+
* Use of this source code is governed by a BSD-style
4+
* license that can be found in the LICENSE.txt file.
5+
*/
6+
17
#include "cgo.h"
28

39
#include "bsdiff.h"

internal/native/cgo.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright (c) 2017-2022 Carl Kittelberger.
3+
* Use of this source code is governed by a BSD-style
4+
* license that can be found in the LICENSE file.
5+
*/
6+
17
#include <stdlib.h>
28
#include "stdint.h"
39

internal/native/cgo_read.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2017-2022 Carl Kittelberger.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE.txt file.
4+
15
package native
26

37
/*

internal/native/cgo_write.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2017-2022 Carl Kittelberger.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE.txt file.
4+
15
package native
26

37
/*

0 commit comments

Comments
 (0)