Skip to content

Commit

Permalink
fix 4bb90e3
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 10, 2015
1 parent 4bb90e3 commit 86a4820
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions scripts/sort_includes.pl
Expand Up @@ -26,13 +26,7 @@
our $sorting;

BEGIN { $sorting = 0; }
END {
if( $sorting ) {
print foreach sort keys %uis;
print foreach sort keys %sys;
print foreach sort keys %others;
}
}
END { die "header files not empty" if keys %uis || keys %sys || keys %others; }

if(/^\s*#include/ ) {
if(/"ui_/ ) {
Expand All @@ -43,7 +37,8 @@ END
$others{$_}=1;
}
$sorting=1;
next;

next unless eof;
}

if( $sorting ) {
Expand All @@ -54,8 +49,9 @@ END
undef %uis;
undef %sys;
undef %others;
}

last if eof;
}

$sorting=0;

Expand Down

0 comments on commit 86a4820

Please sign in to comment.