Re: Script to generate common license texts
Hello Balasankar,
Am 04.09.2015 um 19:38 schrieb Balasankar C:
> Hi,
>
> 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
> under
> the terms of the GNU General Public License as published by the Free
> Software
> Foundation, either version 3 of the License, or (at your option) any later
> version.
> .
> This package 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, see <http://www.gnu.org/licenses/>.
> .
> On Debian systems, the complete text of the GNU General Public License
> version
> 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?
I was successful using the cme command [1] from the package
libconfig-model-dpkg-perl [2] while refreshing the copyright
information for Icedove to create a base for further working. But there
are surly other tools.
[1]
https://ddumont.wordpress.com/2015/04/05/improving-creation-of-debian-copyright-file/
[2] https://packages.qa.debian.org/libc/libconfig-model-dpkg-perl.html
--
Regards
Carsten Schoenert
Reply to: