Files
cgal/Scripts/developer_scripts/remove_empty_lines.pl
T
Sébastien Loriot 3fbc191693 Revert parts of "On Polygon_mesh_processing_OpenMesh-GF: fairing pour openmesh"
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
2015-06-17 17:59:42 +02:00

15 lines
338 B
Perl
Executable File

#!/usr/bin/perl
# This script-let removes empty lines at the beginning and at the end of the file.
#
# As complement cleanup, one can also remove trailing white spaces at the end of lines:
# perl -pi.bak -e 's/\s+$/\n/' */examples/*/*.cpp
local($/) = undef;
my $text = <>;
$text =~ s/\A\n+//mg;
$text =~ s/\n+\Z/\n/mg;
print "$text";