You are here: / home / 2006 / 09 / 10

Sun, 10 Sep 2006

Small helper for license checks

I'm sure you know the situation, that you have a package, which license file says more or less This is GPL and you later find out (probaly by a rejected upload from Ganneff), that there are some files from a different author or under a different license.

I found the following quite usefull for a quick and dirty check: egrep -Hi 'copyright|LGPL' $(grep -wriL 'GPL' *).

The inner grep will create a list of al files not containing the word "GPL"; the outer egrep will then create a list of all those files containing either the word "copyright" or the word "LPGL".

It's of course not perfect (and far from a nothing found? okay, let's upload it), but at least you'll get a list of files where it's quite sure you need to mentionen them in your debian/control ;)

Anyone has any better checks for such things?

postet at 16:31 into [Debian] permanent link


Alexander Tolimar Reichle-Schmehl lives in Tuttlingen / Germany. He works as IT manager (specialized on Unix and SAN/Storage) for an international automotive supplier.