Skip to content

Commit

Permalink
scan_includes.pl: fix permissions and catch trailing includes
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 10, 2015
1 parent 5d50af0 commit 4bb90e3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/sort_includes.pl 100644 → 100755
Expand Up @@ -26,7 +26,13 @@
our $sorting;

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

if(/^\s*#include/ ) {
if(/"ui_/ ) {
Expand Down

0 comments on commit 4bb90e3

Please sign in to comment.