⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
local
/
src
/
pcre2-10.39
/
View File Name :
CheckMan
#! /usr/bin/perl # A script to scan PCRE2's man pages to check for typos in the control # sequences. I use only a small set of the available repertoire, so it is # straightforward to check that nothing else has slipped in by mistake. This # script should be called in the doc directory. $yield = 0; while (scalar(@ARGV) > 0) { $line = 0; $file = shift @ARGV; open (IN, $file) || die "Failed to open $file\n"; while (<IN>) { $count = 0; $line++; if (/^\s*$/) { printf "Empty line $line of $file\n"; $yield = 1; } elsif (/^\./) { if (!/^\.\s*$| ^\.B\s+\S| ^\.TH\s\S| ^\.SH\s\S| ^\.SS\s\S| ^\.TP(?:\s?\d+)?\s*$| ^\.SM\s*$| ^\.br\s*$| ^\.rs\s*$| ^\.sp\s*$| ^\.nf\s*$| ^\.fi\s*$| ^\.P\s*$| ^\.PP\s*$| ^\.\\"(?:\ HREF)?\s*$| ^\.\\"\sHTML\s<a\shref="[^"]+?">\s*$| ^\.\\"\sHTML\s<a\sname="[^"]+?"><\/a>\s*$| ^\.\\"\s<\/a>\s*$| ^\.\\"\sJOINSH\s*$| ^\.\\"\sJOIN\s*$/x ) { printf "Bad control line $line of $file\n"; $yield = 1; } } elsif (/\\[^ef]|\\f[^IBP]/) { printf "Bad backslash in line $line of $file\n"; $yield = 1; } while (/\\f[BI]/g) { $count++; } while (/\\fP/g) { $count--; } if ($count != 0) { printf "Mismatching formatting in line $line of $file\n"; $yield = 1; } } close(IN); } exit $yield; # End