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);"
16 print "extern int immediate_quit;";
18 print "show_copying_command (char *ignore, int from_tty)";
20 print " immediate_quit++;";
22 NR == 1,/^[ ]*15\. Disclaimer of Warranty\.[ ]*$/ {
25 printf " printf_filtered (\"\\n\");\n";
27 else if ($0 !~ /^[ ]*15\. Disclaimer of Warranty\.[ ]*$/)
29 printf " printf_filtered (\"";
30 for (i = 1; i < NF; i++)
32 printf "%s\\n\");\n", $NF;
35 /^[ ]*15\. Disclaimer of Warranty\.[ ]*$/ {
36 print " immediate_quit--;";
40 print "show_warranty_command (char *ignore, int from_tty)";
42 print " immediate_quit++;";
44 /^[ ]*15\. Disclaimer of Warranty\.[ ]*$/, /^[ ]*END OF TERMS AND CONDITIONS[ ]*$/{
45 if (! ($0 ~ /^[ ]*END OF TERMS AND CONDITIONS[ ]*$/))
47 printf " printf_filtered (\"";
48 for (i = 1; i < NF; i++)
50 printf "%s\\n\");\n", $NF;
54 print " immediate_quit--;";
58 print "_initialize_copying (void)";
60 print " add_cmd (\"copying\", no_class, show_copying_command,";
61 print " _(\"Conditions for redistributing copies of GDB.\"),";
63 print " add_cmd (\"warranty\", no_class, show_warranty_command,";
64 print " _(\"Various kinds of warranty you do not have.\"),";
67 print " /* For old-timers, allow \"info copying\", etc. */";
68 print " add_info (\"copying\", show_copying_command,";
69 print " _(\"Conditions for redistributing copies of GDB.\"));";
70 print " add_info (\"warranty\", show_warranty_command,";
71 print " _(\"Various kinds of warranty you do not have.\"));";