git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples/packet_ordering: enhance getopt_long usage
[dpdk.git]
/
devtools
/
check-forbidden-tokens.awk
diff --git
a/devtools/check-forbidden-tokens.awk
b/devtools/check-forbidden-tokens.awk
index
fd77cdd
..
61ba707
100755
(executable)
--- a/
devtools/check-forbidden-tokens.awk
+++ b/
devtools/check-forbidden-tokens.awk
@@
-54,7
+54,7
@@
BEGIN {
}
for (i in deny_folders) {
re = "^\\+\\+\\+ b/" deny_folders[i];
}
for (i in deny_folders) {
re = "^\\+\\+\\+ b/" deny_folders[i];
- if ($0 ~
deny_folders[i]
) {
+ if ($0 ~
re
) {
in_file = 1
last_file = $0
}
in_file = 1
last_file = $0
}
@@
-62,13
+62,8
@@
BEGIN {
}
END {
if (count > 0) {
}
END {
if (count > 0) {
- print "Warning in " substr(last_file,6) ":"
- print "are you sure you want to add the following:"
- for (key in expressions) {
- if (expressions[key] > 0) {
- print key
- }
- }
+ print "Warning in " substr(last_file,7) ":"
+ print MESSAGE
exit RET_ON_FAIL
}
}
exit RET_ON_FAIL
}
}