Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I provide a LICENSE.txt or COPYING.txt file in my project? [closed]

Does it matter? Should I use one or the other? Or both, even? Can the license file be any name? (With any extension?)

I'm sure there's a "best practices" guide that contains all this, but I'm not having any luck finding it.

like image 538
Joe Avatar asked Apr 15 '11 14:04

Joe


People also ask

Do I need to include the license file?

No, you don't have to put the license in each source code file. If you look closer, most FOSS applications don't do that either. They put a copyright statement at the top of each file and a short sentence telling you what license the file is under and where you can find the full text of the license.

What is the purpose of a license file?

A license file (previously called a provisioning file) is a plain text file that automatically supplies required information—such as product name, authorization number, and user contact information—to the Software Authorization Wizard.

What is license txt file?

License. txt is simply a generic name for any license file. There is no web "standard" or convention for "license. txt" files like there is for, say, robots.


1 Answers

COPYING is standard in the GNU project. I think that either of COPYING or LICENSE would be understood. The FSF has a guide on how to use the GPL, which suggests COPYING, while the Producing Open Source Software book suggests either COPYING or LICENSE. The Apache License recommends a boilerplate that just points to the license online, though the Apache project seems to also include a LICENSE file in their code containing the relevant license or licenses.

It's up to you whether you want to add the .txt suffix; on Windows and Mac OS X it tends to be helpful for default file associations, while on Linux or most other Unix-type operating systems suffixes are optional and it's generally assumed that files are plain text.

like image 116
Brian Campbell Avatar answered Sep 22 '22 18:09

Brian Campbell