Difference between revisions of "CopyRights"

From OPeNDAP Documentation
(Created page with "= Copyrights for OPeNDAP software = Unless otherwise specified, all software written for OPeNDAP is __Open Source__ and should be copyrighted using the GNU [http://www.fsf.org/ ...")
 
(What to do)
Line 7: Line 7:
 
First, you should prefix all of your source code with a header like the following:
 
First, you should prefix all of your source code with a header like the following:
  
<source lang="C++">
+
<source lang="c">
 
/////////////////////////////////////////////////////////////////////////////
 
/////////////////////////////////////////////////////////////////////////////
 
// This file is part of the "Server4" project, a Java implementation of the
 
// This file is part of the "Server4" project, a Java implementation of the

Revision as of 05:01, 7 March 2012

1 Copyrights for OPeNDAP software

Unless otherwise specified, all software written for OPeNDAP is __Open Source__ and should be copyrighted using the GNU Free Software Foundation's Lesser General Public License.

1.1 What to do

First, you should prefix all of your source code with a header like the following:

/////////////////////////////////////////////////////////////////////////////
// This file is part of the "Server4" project, a Java implementation of the
// OPeNDAP Data Access Protocol.
//
// Copyright (c) 2005 OPeNDAP, Inc.
// Author: Nathan David Potter  <nathan's email here>
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
//
// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
/////////////////////////////////////////////////////////////////////////////

Make sure to change that header to fit the software you're writing. For example, not all of the code we produce is a library, so change 'library' to 'software,' 'program,' 'server,' ..., whatever is appropriate. Put this at the start of all .c, .cc, .h, .java, et c. files.

Second, in the main directory of the software's distribution, include a copy of the license in a file named 'COPYING'. A copy is attached to this page. In the README file, which should also appear in the distribution's main directory, explain that the license is in the file named 'COPYING'.

1.2 What about books and the like?

There is a GNU open source license specifically tailored to documentation. This is not needed for files like README, INSTALL, but it is appropriate for larger documents such as our User's Guide. See the FSF Web site for details.