~jenkaas-hackers/pbuilderjenkins/trunk

« back to all changes in this revision

Viewing changes to hooks/A10checklicenseheaders.in

Revert most recent change to A10checklicenseheaders.in.

Approved by PS Jenkins bot, Omer Akram.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
excludedirs="3rd_party"
24
24
allowedlicenses="(Canonical|Android|Google|Digia)"
25
25
 
26
 
issues=`licensecheck --noconf -r * --copyright -m -c $includefiles -i $excludedirs | egrep -v "$allowedlicenses"`
27
 
issuescount=`echo "$issues" | wc -l`
 
26
issuescount=`licensecheck --noconf -r * --copyright -m -c $includefiles -i $excludedirs | egrep -v $allowedlicenses | wc -l`
28
27
 
29
28
if [ $issuescount -eq 0 ]; then
30
29
    echo No license problems found.
31
30
    exit 0
32
31
else
33
32
    echo Found $issuescount license problems:
34
 
    echo "$issues"
 
33
    # Run it a second time to print a nice list of issues
 
34
    licensecheck --noconf -r * --copyright -m -c $includefiles -i $excludedirs | egrep -v $allowedlicenses
35
35
    exit 1
36
36
fi
37
37