* copying.c: Rebuild.
[deliverable/binutils-gdb.git] / gdb / copying.awk
1 BEGIN {
2 FS="\"";
3 print "/* ==> Do not modify this file!! It is created automatically";
4 print " by copying.awk. Modify copying.awk instead. <== */";
5 print ""
6 print "#include \"defs.h\""
7 print "#include \"command.h\""
8 print "#include \"gdbcmd.h\""
9 print ""
10 print "static void show_copying_command (char *, int);"
11 print ""
12 print "static void show_warranty_command (char *, int);"
13 print ""
14 print "void _initialize_copying (void);"
15 print ""
16 print "static void";
17 print "show_copying_command (char *ignore, int from_tty)";
18 print "{";
19 }
20 NR == 1,/^[ ]*15\. Disclaimer of Warranty\.[ ]*$/ {
21 if ($0 ~ /\f/)
22 {
23 printf " printf_filtered (\"\\n\");\n";
24 }
25 else if ($0 !~ /^[ ]*15\. Disclaimer of Warranty\.[ ]*$/)
26 {
27 printf " printf_filtered (\"";
28 for (i = 1; i < NF; i++)
29 printf "%s\\\"", $i;
30 printf "%s\\n\");\n", $NF;
31 }
32 }
33 /^[ ]*15\. Disclaimer of Warranty\.[ ]*$/ {
34 print "}";
35 print "";
36 print "static void";
37 print "show_warranty_command (char *ignore, int from_tty)";
38 print "{";
39 }
40 /^[ ]*15\. Disclaimer of Warranty\.[ ]*$/, /^[ ]*END OF TERMS AND CONDITIONS[ ]*$/{
41 if (! ($0 ~ /^[ ]*END OF TERMS AND CONDITIONS[ ]*$/))
42 {
43 printf " printf_filtered (\"";
44 for (i = 1; i < NF; i++)
45 printf "%s\\\"", $i;
46 printf "%s\\n\");\n", $NF;
47 }
48 }
49 END {
50 print "}";
51 print "";
52 print "void"
53 print "_initialize_copying (void)";
54 print "{";
55 print " add_cmd (\"copying\", no_set_class, show_copying_command,";
56 print " _(\"Conditions for redistributing copies of GDB.\"),";
57 print " &showlist);";
58 print " add_cmd (\"warranty\", no_set_class, show_warranty_command,";
59 print " _(\"Various kinds of warranty you do not have.\"),";
60 print " &showlist);";
61 print "";
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.\"));";
67 print "}";
68 }
This page took 0.044091 seconds and 5 git commands to generate.