fsfe / reuse-tool

reuse is a tool for compliance with the REUSE recommendations.
https://reuse.software
382 stars 146 forks source link

Generate debian/copyright files #926

Open koalo opened 6 months ago

koalo commented 6 months ago

Hi, is there any easy way to reuse ( ;-) ) the copyright information processed by reuse to generate debian/copyright files (https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/) so we do not have to maintain that file manually?

Thanks, Florian

BigBlueHat commented 6 months ago

I use the "missing license" output from the console and then make one by hand. Certainly the data's there. Harder problem would be managing it long term (and finding unused paths, etc.).

Would definitely be handy, though!

koalo commented 6 months ago

What do you mean with "managing it long term"? I would expect you could just regenerate the copyright file for every release and avoid making manual changes to that file. Or do I overlook something?

carmenbianca commented 6 months ago

I'm not sure this will be built in, but you could very easily run reuse lint --json to get all the data needed to generate a debian/copyright file. It will be very terse (without any globs), but complete.