delete_includes.py: add target for ui/qt
Change-Id: I9dc51fbef50941f04ccf5b0b5a8cd71f3693ade4 Reviewed-on: https://code.wireshark.org/review/7389 Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
This commit is contained in:
parent
be68cdb018
commit
618eaecee6
|
@ -33,7 +33,7 @@ except:
|
|||
exit (-1)
|
||||
|
||||
def show_usage():
|
||||
print 'Usage: ./delete_includes.py <dissectors | wsutil | wiretap | ui | plugins > [start_file] [stop_file]'
|
||||
print 'Usage: ./delete_includes.py <dissectors | wsutil | wiretap | ui | qt | plugins > [start_file] [stop_file]'
|
||||
|
||||
|
||||
# Work out wireshark folder based upon CWD. Assume run in wireshark folder
|
||||
|
@ -72,6 +72,12 @@ if len(sys.argv) > 1:
|
|||
test_folder = os.path.join(wireshark_root, 'ui')
|
||||
run_folder = wireshark_root
|
||||
make_command = default_make_command
|
||||
elif sys.argv[1] == 'qt':
|
||||
print 'qt target chosen!'
|
||||
test_folder = os.path.join(wireshark_root, 'ui', 'qt')
|
||||
run_folder = wireshark_root
|
||||
default_make_command.append('qt')
|
||||
make_command = default_make_command
|
||||
elif sys.argv[1] == 'plugins':
|
||||
print 'plugins target chosen!'
|
||||
test_folder = os.path.join(wireshark_root, 'plugins')
|
||||
|
@ -338,7 +344,7 @@ def generated_file(filename):
|
|||
if lines_tested > 10:
|
||||
f_read.close()
|
||||
return False
|
||||
if line.find('Generated automatically') != -1 or line.find('Autogenerated from') != -1 or line.find('is autogenerated') != -1 or line.find('automatically generated by Pidl') != -1:
|
||||
if line.find('Generated automatically') != -1 or line.find('Autogenerated from') != -1 or line.find('is autogenerated') != -1 or line.find('automatically generated by Pidl') != -1 or line.find('Created by: The Qt Meta Object Compiler') != -1:
|
||||
f_read.close()
|
||||
# This file was generated.
|
||||
global generated_files_ignored
|
||||
|
|
Loading…
Reference in New Issue