This reverts commit eb23730432aaeeef35b85feb013942175ae504f8, reversing changes made to 1f0191190bcd9dfce903cf5af155ee114d00ac4b. Only undo the permission changes Conflicts: Polygon_mesh_processing/examples/Polygon_mesh_processing/hole_filling_example_OM.cpp Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Hole_filling/Weights.h Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/fair_impl.h Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/triangulate_hole.h
23 lines
717 B
Bash
Executable File
23 lines
717 B
Bash
Executable File
#!/bin/zsh
|
|
|
|
# Script to be run at the root of a CGAL branch.
|
|
# It scans the license of the files in */include, and write the files
|
|
# */package_info/*/license.txt
|
|
|
|
setopt extendedglob
|
|
|
|
for p in ^*build*(/); do
|
|
if [ -d $p/include ]; then
|
|
licFile=$p/package_info/$p/license.txt
|
|
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 -Ev '^L?GPL \(v3 or later\) *$'`" ]; then
|
|
echo 'GPL (v3 or later)' > "$licFile"
|
|
else
|
|
echo "MULTIPLE!" > "$licFile";
|
|
echo $l >> "$licFile"
|
|
fi
|
|
fi
|
|
done
|