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:
Laurent Rineau
2013-02-18 15:30:06 +01:00
parent 01ac6dd2ef
commit b0d3a8d320
@@ -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";