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 (const char *, int);"
15 print "static void show_warranty_command (const char *, int);"
18 print "show_copying_command (const char *ignore, int from_tty)";
21 NR == 1,/^[ ]*15\. Disclaimer of Warranty\.[ ]*$/ {
24 printf " printf_filtered (\"\\n\");\n";
26 else if ($0 !~ /^[ ]*15\. Disclaimer of Warranty\.[ ]*$/)
28 printf " printf_filtered (\"";
29 for (i = 1; i < NF; i++)
31 printf "%s\\n\");\n", $NF;
34 /^[ ]*15\. Disclaimer of Warranty\.[ ]*$/ {
38 print "show_warranty_command (const char *ignore, int from_tty)";
41 /^[ ]*15\. Disclaimer of Warranty\.[ ]*$/, /^[ ]*END OF TERMS AND CONDITIONS[ ]*$/{
42 if (! ($0 ~ /^[ ]*END OF TERMS AND CONDITIONS[ ]*$/))
44 printf " printf_filtered (\"";
45 for (i = 1; i < NF; i++)
47 printf "%s\\n\");\n", $NF;
54 print "_initialize_copying (void)";
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.\"));";