Files
cgal/Scripts/developer_scripts/remove_empty_lines.pl
T
m.overtheil 9da9cff768 Merge branch 'Spatial_searching-Rectangle_compiletimeD-gf' into Spatial_searching-final_acceleration-gf
Conflicts:
	Spatial_searching/benchmark/Spatial_searching/nn3cgal.cpp
	Spatial_searching/include/CGAL/Kd_tree.h
	Spatial_searching/include/CGAL/Kd_tree_node.h
2014-11-28 13:10:08 +01:00

15 lines
338 B
Perl

#!/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";