mirror of
https://github.com/rfc1036/whois.git
synced 2026-05-03 06:51:09 +00:00
Automatically generate the IDSTRING
This commit is contained in:
parent
9bdb9bc7b6
commit
bfc8c6bf9c
@ -17,8 +17,13 @@ $ver =~ s/ ( ~bpo\d+\+\d+ | \+b\d+ | ~deb\d+.* | ubuntu\d+ | \+dyson\d+ ) $//x;
|
||||
|
||||
# The version number must not deviate from this format or the -V option
|
||||
# to RIPE-like servers will break. If needed, update the previous regexp.
|
||||
# This may not be true anymore in 2019.
|
||||
die "Invalid version number in $changelog!\n"
|
||||
unless $ver =~ /^ \d+\.\d+ ( \.\d+ )? $/x;
|
||||
|
||||
# This is the version number used in the help messages.
|
||||
print qq|#define VERSION "$ver"\n|;
|
||||
|
||||
# This is the string sent to RIPE-like servers as the argument of -V.
|
||||
print qq|#define IDSTRING "Md$ver"\n|;
|
||||
|
||||
|
||||
4
whois.h
4
whois.h
@ -3,10 +3,6 @@
|
||||
/* 6bone referto: extension */
|
||||
#define REFERTO_FORMAT "%% referto: whois -h %255s -p %15s %1021[^\n\r]"
|
||||
|
||||
/* String sent to RIPE servers - MUST NOT BE LONGER THAN FIVE CHARACTERS! */
|
||||
/* Do *NOT* change it if you don't know what you are doing! */
|
||||
#define IDSTRING "Md5.2"
|
||||
|
||||
#define HIDE_TO_THE_END -3
|
||||
#define HIDE_DISABLED -2
|
||||
#define HIDE_NOT_STARTED -1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user