How to write the license - pgRouting/pgrouting GitHub Wiki

GNU license

The structure of a license in .c, .cpp, .h, .hpp, .sql

/*PGR-GNU*****************************************************************

<developer data>

------
<license body> 
 *******************************************************************PGR-GNU*/
  • For logical changes on the file please add the appropriate additional developer data lines
  • For formatting changes do not add developer data lines
  • For file renaming
    • do not add developer data lines
    • adjust the file name line
  • When Joining files into one
    • keep all the developer data lines of all the joined files
    • adjust the file name line
    • If one file has a copy right for pgRouting developers adjust to the lowest year from all copyrights
  • When not phisically joining but logically joining files to be removed later
    • keep all the developer data lines of all the logically joined files

developer data

  • with the year,
  • developer name
    • when not wanted to publish personal name
      • Use github nick
      • OR use "pgRouting developers"
  • developer mail
  • Use "at" instead of "@"
  • use [email protected] when not wanted to publish personal e-mail

license body

Currently the license body is

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Complete license example

/*PGR-GNU*****************************************************************

File: _pgr_foo.sql

Copyright (c) <year> pgRouting developers
Mail: [email protected]

Function's developer:
Copyright (c) <year> <developer name>
Mail: <developer mail>

------
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 ********************************************************************PGR-GNU*/

TODO

More file types licenses rules

⚠️ **GitHub.com Fallback** ⚠️