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 \"command.h\""
10 print "#include \"cli/cli-cmds.h\""
12 print "static void show_copying_command (const char *, int);"
14 print "static void show_warranty_command (const char *, int);"
17 print "show_copying_command (const char *ignore, int from_tty)";
20 NR ==
1,/^
[ ]*15\. Disclaimer of Warranty\.
[ ]*$
/ {
23 printf " gdb_printf (\"\\n\");\n";
25 else if ($
0 !~
/^
[ ]*15\. Disclaimer of Warranty\.
[ ]*$
/)
27 printf " gdb_printf (\"";
28 for (i =
1; i
< NF; i
++)
30 printf "%s\\n\");\n", $
NF;
33 /^
[ ]*15\. Disclaimer of Warranty\.
[ ]*$
/ {
37 print "show_warranty_command (const char *ignore, int from_tty)";
40 /^
[ ]*15\. Disclaimer of Warranty\.
[ ]*$
/, /^
[ ]*END OF TERMS AND CONDITIONS
[ ]*$
/{
41 if (!
($
0 ~
/^
[ ]*END OF TERMS AND CONDITIONS
[ ]*$
/))
43 printf " gdb_printf (\"";
44 for (i =
1; i
< NF; i
++)
46 printf "%s\\n\");\n", $
NF;
52 print "void _initialize_copying ();"
54 print "_initialize_copying ()";
56 print " add_cmd (\"copying\", no_set_class, show_copying_command,";
57 print " _(\"Conditions for redistributing copies of GDB.\"),";
59 print " add_cmd (\"warranty\", no_set_class, show_warranty_command,";
60 print " _(\"Various kinds of warranty you do not have.\"),";
63 print " /* For old-timers, allow \"info copying\", etc. */";
64 print " add_info (\"copying\", show_copying_command,";
65 print " _(\"Conditions for redistributing copies of GDB.\"));";
66 print " add_info (\"warranty\", show_warranty_command,";
67 print " _(\"Various kinds of warranty you do not have.\"));";