3 print "/* ==> Do not modify this file!! " \
4 "-*- buffer-read-only: t -*- vi" \
6 print " It is created automatically by copying.awk.";
7 print " Modify copying.awk instead. <== */";
9 print "#include \"defs.h\""
10 print "#include \"command.h\""
11 print "#include \"gdbcmd.h\""
13 print "static void show_copying_command (char *, int);"
15 print "static void show_warranty_command (char *, int);"
17 print "void _initialize_copying (void);"
20 print "show_copying_command (char *ignore, int from_tty)";
23 NR ==
1,/^
[ ]*15\. Disclaimer of Warranty\.
[ ]*$
/ {
26 printf " printf_filtered (\"\\n\");\n";
28 else if ($
0 !~
/^
[ ]*15\. Disclaimer of Warranty\.
[ ]*$
/)
30 printf " printf_filtered (\"";
31 for (i =
1; i
< NF; i
++)
33 printf "%s\\n\");\n", $
NF;
36 /^
[ ]*15\. Disclaimer of Warranty\.
[ ]*$
/ {
40 print "show_warranty_command (char *ignore, int from_tty)";
43 /^
[ ]*15\. Disclaimer of Warranty\.
[ ]*$
/, /^
[ ]*END OF TERMS AND CONDITIONS
[ ]*$
/{
44 if (!
($
0 ~
/^
[ ]*END OF TERMS AND CONDITIONS
[ ]*$
/))
46 printf " printf_filtered (\"";
47 for (i =
1; i
< NF; i
++)
49 printf "%s\\n\");\n", $
NF;
56 print "_initialize_copying (void)";
58 print " add_cmd (\"copying\", no_set_class, show_copying_command,";
59 print " _(\"Conditions for redistributing copies of GDB.\"),";
61 print " add_cmd (\"warranty\", no_set_class, show_warranty_command,";
62 print " _(\"Various kinds of warranty you do not have.\"),";
65 print " /* For old-timers, allow \"info copying\", etc. */";
66 print " add_info (\"copying\", show_copying_command,";
67 print " _(\"Conditions for redistributing copies of GDB.\"));";
68 print " add_info (\"warranty\", show_warranty_command,";
69 print " _(\"Various kinds of warranty you do not have.\"));";