I started writing a home-brew script (http://bhaisaab.org/contribs/testlicense.py) to check the license, but then found licensecheck.pl (written by adam baratt based on a script by david faure of KDE) that checks for all sorts of licenses. For Fedora/Ubuntu users, the script is in the devscripts package.
Scripts; (licensecheck.sh is a wrapper over licensecheck.pl, for cloudstack specific logic) http://bhaisaab.org/contribs/licensecheck.sh http://bhaisaab.org/contribs/licensecheck.pl Usage: sh licensecheck.sh <path to root dir of apache cloudstack git repo> Example: sh licensecheck.sh incubator-cloudstack/ Output: <Name of the file>: <Copyright info, UNKNOWN, Apache, MIT, BSD etc.> Based on HEAD=083cef37, please check if it works: http://bhaisaab.org/cloudstack-checklicense.txt Do we need to fix/add Apache license for: - text files (README, INSTALL, NOTICE etc.) - configuration files - awsapi (top level LICENSE suggest they're BSD 3-clause) - deps - docs - patches/ - plugins - apidocs/ - tools - ui Regards, Rohit Yadav
