3 print "/* ==> Do not modify this file!! It is created automatically";
4 print " by copying.awk. Modify copying.awk instead. <== */";
6 print "#include \"defs.h\""
7 print "#include \"command.h\""
8 print "#include \"gdbcmd.h\""
10 print "static void show_copying_command (char *, int);"
12 print "static void show_warranty_command (char *, int);"
14 print "void _initialize_copying (void);"
17 print "show_copying_command (char *ignore, int from_tty)";
20 NR == 1,/^[ ]*15\. Disclaimer of Warranty\.[ ]*$/ {
23 printf " printf_filtered (\"\\n\");\n";
25 else if ($0 !~ /^[ ]*15\. Disclaimer of Warranty\.[ ]*$/)
27 printf " printf_filtered (\"";
28 for (i = 1; i < NF; i++)
30 printf "%s\\n\");\n", $NF;
33 /^[ ]*15\. Disclaimer of Warranty\.[ ]*$/ {
37 print "show_warranty_command (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 " printf_filtered (\"";
44 for (i = 1; i < NF; i++)
46 printf "%s\\n\");\n", $NF;
53 print "_initialize_copying (void)";
55 print " add_cmd (\"copying\", no_set_class, show_copying_command,";
56 print " _(\"Conditions for redistributing copies of GDB.\"),";
58 print " add_cmd (\"warranty\", no_set_class, show_warranty_command,";
59 print " _(\"Various kinds of warranty you do not have.\"),";
62 print " /* For old-timers, allow \"info copying\", etc. */";
63 print " add_info (\"copying\", show_copying_command,";
64 print " _(\"Conditions for redistributing copies of GDB.\"));";
65 print " add_info (\"warranty\", show_warranty_command,";
66 print " _(\"Various kinds of warranty you do not have.\"));";