Check for license on commit

David Faure faure at kde.org
Wed May 11 00:30:56 BST 2005


On Tuesday 10 May 2005 16:38, Benjamin Meyer wrote:
> In my personal svn I have added the following pre-commit check to make sure 
> that every file that I add/modify has a proper license.  There are a lot of 
> files inside KDE that do not conform to the KDE licencing policy (daily 
> report: http://kde.icefox.net/tests/report.html).  What do you think of 
> adding this to the pre-commit hook script to prevent more source without a 
> license?
> 
> $CHECKLICENSES /tmp/$$ > /tmp/$$/check 2> /tmp/$$/check_error || exit 1
What about images? sounds? READMEs? ... ?

> count=`cat /tmp/27897/check | wc -l`
^ obvious bug there (hardcoded pid)

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list