aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/fix-encoding-args.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/fix-encoding-args.pl b/tools/fix-encoding-args.pl
index 591a4b97c0..9af88d034e 100755
--- a/tools/fix-encoding-args.pl
+++ b/tools/fix-encoding-args.pl
@@ -219,6 +219,8 @@ if (!$result || $helpFlag || !$ARGV[0]) {
# Note: The proto_tree_add_item() encoding arg will be converted only if
# the hf_index_name referenced is in one of the entries in hf[] in the same file
+my $found_total = 0;
+
while (my $fileName = $ARGV[0]) {
shift;
my $fileContents = '';
@@ -257,7 +259,7 @@ while (my $fileName = $ARGV[0]) {
print FCO "$fileContents";
close(FCO);
}
- exit $found;
+ $found_total += $found;
# Optional searches:
# search for (and output) proto_tree_add_item() statements with invalid encoding arg for specified field types
@@ -274,7 +276,9 @@ while (my $fileName = $ARGV[0]) {
# and output same highlighting the encoding arg
# find_all(\$fileContents, $fileName);
-}
+} # while
+
+exit $found_total;
#==================================================================================