|
| 1 | +License Information |
| 2 | +=================== |
| 3 | + |
| 4 | +SQLite Is Public Domain |
| 5 | +----------------------- |
| 6 | + |
| 7 | +The SQLite source code, including all of the files in the directories |
| 8 | +listed in the bullets below are |
| 9 | +[Public Domain](https://sqlite.org/copyright.html). |
| 10 | +The authors have submitted written affidavits releasing their work to |
| 11 | +the public for any use. Every byte of the public-domain code can be |
| 12 | +traced back to the original authors. The files of this repository |
| 13 | +that are public domain include the following: |
| 14 | + |
| 15 | + * All of the primary SQLite source code files found in the |
| 16 | + [src/ directory](https://sqlite.org/src/tree/src?type=tree&expand) |
| 17 | + * All of the test cases and testing code in the |
| 18 | + [test/ directory](https://sqlite.org/src/tree/test?type=tree&expand) |
| 19 | + * All of the SQLite extension source code and test cases in the |
| 20 | + [ext/ directory](https://sqlite.org/src/tree/ext?type=tree&expand) |
| 21 | + * All code that ends up in the "sqlite3.c" and "sqlite3.h" build products |
| 22 | + that actually implement the SQLite RDBMS. |
| 23 | + * All of the code used to compile the |
| 24 | + [command-line interface](https://sqlite.org/cli.html) |
| 25 | + * All of the code used to build various utility programs such as |
| 26 | + "sqldiff", "sqlite3_rsync", and "sqlite3_analyzer". |
| 27 | + |
| 28 | + |
| 29 | +The public domain source files usually contain a header comment |
| 30 | +similar to the following to make it clear that the software is |
| 31 | +public domain. |
| 32 | + |
| 33 | +> ~~~ |
| 34 | +The author disclaims copyright to this source code. In place of |
| 35 | +a legal notice, here is a blessing: |
| 36 | + |
| 37 | + * May you do good and not evil. |
| 38 | + * May you find forgiveness for yourself and forgive others. |
| 39 | + * May you share freely, never taking more than you give. |
| 40 | +~~~ |
| 41 | + |
| 42 | +Almost every file you find in this source repository will be |
| 43 | +public domain. But there are a small number of exceptions: |
| 44 | + |
| 45 | +Non-Public-Domain Code Included With This Source Repository AS A Convenience |
| 46 | +---------------------------------------------------------------------------- |
| 47 | + |
| 48 | +This repository contains a (relatively) small amount of non-public-domain |
| 49 | +code used to help implement the configuration and build logic. In other |
| 50 | +words, there are some non-public-domain files used to implement: |
| 51 | + |
| 52 | +> ~~~ |
| 53 | +./configure && make |
| 54 | +~~~ |
| 55 | + |
| 56 | +In all cases, the non-public-domain files included with this |
| 57 | +repository have generous BSD-style licenses. So anyone is free to |
| 58 | +use any of the code in this source repository for any purpose, though |
| 59 | +attribution may be required to reuse or republish the configure and |
| 60 | +build scripts. None of the non-public-domain code ever actually reaches |
| 61 | +the build products, such as "sqlite3.c", however, so no attribution is |
| 62 | +required to use SQLite itself. The non-public-domain code consists of |
| 63 | +scripts used to help compile SQLite. The non-public-domain code is |
| 64 | +technically not part of SQLite. The non-public-domain code is |
| 65 | +included in this repository as a convenience to developers, so that those |
| 66 | +who want to build SQLite do not need to go download a bunch of |
| 67 | +third-party build scripts in order to compile SQLite. |
| 68 | + |
| 69 | +Non-public-domain code included in this respository includes: |
| 70 | + |
| 71 | + * The ["autosetup"](http://msteveb.github.io/autosetup/) configuration |
| 72 | + system that is contained (mostly) the autosetup/ directory, but also |
| 73 | + includes the "./configure" script at the top-level of this archive. |
| 74 | + Autosetup has a separate BSD-style license. See the |
| 75 | + [autosetup/LICENSE](http://msteveb.github.io/autosetup/license/) |
| 76 | + for details. |
| 77 | + |
| 78 | + * There are BSD-style licenses on some of the configuration |
| 79 | + software found in the legacy autoconf/ directory and its |
| 80 | + subdirectories. |
| 81 | + |
| 82 | +The following unix shell command is can be run from the top-level |
| 83 | +of this source repository in order to remove all non-public-domain |
| 84 | +code: |
| 85 | + |
| 86 | +> ~~~ |
| 87 | +rm -rf configure autosetup autoconf |
| 88 | +~~~ |
| 89 | + |
| 90 | +If you unpack this source repository and then run the command above, what |
| 91 | +is left will be 100% public domain. |
0 commit comments