[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Script to generate common license texts


Is there any script which takes abbreviation of a license (like
GPL-3+) as input and generates the license text that can be used in
debian/copyright (80 character wrapped, one space before each line,
paragraph separated with periods - the whole deal.

For example, if the script is named 'genlicense', the command
$ genlicense gpl-3.0+

should give the following output

License: GPL-3.0+
 This program is free software: you can redistribute it and/or modify it
 the terms of the GNU General Public License as published by the Free
 Foundation, either version 3 of the License, or (at your option) any later
 This package is distributed in the hope that it will be useful, but WITHOUT
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 You should have received a copy of the GNU General Public License along
 this program. If not, see <http://www.gnu.org/licenses/>.
 On Debian systems, the complete text of the GNU General Public License
 3 can be found in "/usr/share/common-licenses/GPL-3".

Is there any script which does this already? If not, can I write one
that supports all DFSG-happy licenses and add it to devscripts?

Balasankar C

Reply to: