Přemysl Eric Janouch
50057d5149
I'm not entirely sure, but it looks like some people might not like jokes about the Holocaust. On a more serious note, the project has become more serious over the 7 or so years of its existence.
15 lines
428 B
Bash
Executable File
15 lines
428 B
Bash
Executable File
#!/bin/sh
|
|
# We don't use printf's percent notation with our custom logging mechanism,
|
|
# so the compiler cannot check it for us like it usually does
|
|
perl -n0777 - "$(dirname "$0")"/xC.c <<-'END'
|
|
while (/\blog_[^ ]+\s*\([^"()]*"[^"]*%[^%][^"]*"/gm) {
|
|
my ($p, $m) = ($`, $&);
|
|
printf "$ARGV:%d: suspicious log format string: %s...\n",
|
|
(1 + $p =~ tr/\n//), ($m =~ s/\s+/ /rg);
|
|
$status = 1;
|
|
}
|
|
END {
|
|
exit $status;
|
|
}
|
|
END
|