mirror of https://github.com/CGAL/cgal
*** empty log message ***
This commit is contained in:
parent
8416f731da
commit
d4c8aae018
|
|
@ -1,4 +1,4 @@
|
|||
#!/local/bin/perl -w
|
||||
#!/sw/bin/perl -w
|
||||
# alter the path above to the result of `which perl` on your system
|
||||
|
||||
# usage: cgal_conditional_include file1 ...
|
||||
|
|
@ -35,11 +35,11 @@
|
|||
$tmpfilename = "CondIncl$$";
|
||||
FILE:
|
||||
foreach $filename (@ARGV) {
|
||||
if (!open(infile, $filename)) {
|
||||
if (!open("infile", $filename)) {
|
||||
print STDERR "Could not open ${filename} for reading\n$!\n";
|
||||
next FILE;
|
||||
}
|
||||
open(tmpfile, ">$tmpfilename")
|
||||
open("tmpfile", ">$tmpfilename")
|
||||
|| die "Could not open temp file for writing\n$!\n";
|
||||
$last = '';
|
||||
Line:
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ foreach $filename (@ARGV) {
|
|||
$_ = <INFILE>;
|
||||
my $include_file;
|
||||
if ( !(($include_file) =
|
||||
m|^[\s]*#[\s]*include[\s]*<(.*)(?:\.h)?>[\s]*|)) {
|
||||
m|^[\s]*#[\s]*include[\s]*<(.*?)(?:\.h)?>[\s]*|)) {
|
||||
warn "'#include <...>' missing in line ",
|
||||
$.-$skipped," ($filename)\n";
|
||||
print TMPFILE $protect_line;
|
||||
|
|
@ -108,7 +108,7 @@ foreach $filename (@ARGV) {
|
|||
$_ = <INFILE>;
|
||||
my $include_file;
|
||||
if ( !(($include_file) =
|
||||
m|^[\s]*#[\s]*include[\s]*<CGAL\/(.*)(?:\.h)?>[\s]*|)) {
|
||||
m|^[\s]*#[\s]*include[\s]*<CGAL\/(.*?)(?:\.h)?>[\s]*|)) {
|
||||
print TMPFILE $protect_line;
|
||||
redo;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue