-
Notifications
You must be signed in to change notification settings - Fork 1
/
updater
37 lines (37 loc) · 957 Bytes
/
updater
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/^.\\" @synopsis@$/,/^.\\" @@$/{
if (!synopsis_updated) {
print ".\\\" @synopsis@\n\
.B gnome_inm\n\
.\\\" Mixture of short (flag) options and long options\n\
.RB [ -\\fIflag\\fP \" [\\fIvalue\\fP]]... [\" --\\fIopt-name\\fP [ = \"| ]\\fIvalue\\fP]...\"";
print ".\\\" @@"
}
synopsis_updated=1;
next;
}
/^.\\" @options@$/,/^.\\" @@$/{
if (!options_updated) {
print ".\\\" @options@";
print "\
.TP\n\
.BR -V \", \" --verbose\n\
print more information\n\
.br";
print "\
.TP\n\
.BR \\-? \", \" --help\n\
Display usage information and exit.\n\
.TP\n\
.BR -! \", \" --more-help\n\
Extended usage information passed thru pager.\n\
.TP\n\
.BR \\-v \" [\" v | c | n \"], \" --version [ =v | c | n ]\n\
Output version of program and exit. The default mode is `v', a simple\n\
version. The `c' mode will print copyright information and `n' will\n\
print the full copyright notice.";
print ".\\\" @@"
}
options_updated=1;
next;
}
{print}