Fix a bug in Scripts/developer_scripts/detect_packages_licenses
The bug was hidding the fact that some files of CGAL have no or wrong license headers.
This commit is contained in:
@@ -12,7 +12,7 @@ for p in ^*build*(/); do
|
||||
l=`licensecheck -r $p/include $p/src | awk -F': ' '{print $2}' | grep -v BSL | sed -e 's/GENERATED FILE//' | sort -u`
|
||||
if [ "x`echo $l | wc -l`" = "x1" ]; then
|
||||
echo $l > "$licFile"
|
||||
elif [ -z "`echo $l | grep -Eq '^L?GPL \(v3 or later\) *$'`" ]; then
|
||||
elif [ -z "`echo $l | grep -Ev '^L?GPL \(v3 or later\) *$'`" ]; then
|
||||
echo 'GPL (v3 or later) ' > "$licFile"
|
||||
else
|
||||
echo "MULTIPLE!" > "$licFile";
|
||||
|
||||
Reference in New Issue
Block a user