mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
scan_includes.pl: fix permissions and catch trailing includes
This commit is contained in:
parent
5d50af0407
commit
4bb90e33c4
8
scripts/sort_includes.pl
Normal file → Executable file
8
scripts/sort_includes.pl
Normal file → Executable file
@ -26,7 +26,13 @@ our %others;
|
||||
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_/ ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user