* copying.c: Rebuild.
[deliverable/binutils-gdb.git] / gdb / copying.awk
CommitLineData
c906108c
SS
1BEGIN {
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 ""
1b2a2f90 10 print "static void show_copying_command (char *, int);"
c906108c 11 print ""
1b2a2f90 12 print "static void show_warranty_command (char *, int);"
c906108c 13 print ""
1b2a2f90 14 print "void _initialize_copying (void);"
c906108c 15 print ""
c906108c 16 print "static void";
07aed0eb 17 print "show_copying_command (char *ignore, int from_tty)";
c906108c 18 print "{";
c906108c 19 }
4de6a07e 20NR == 1,/^[ ]*15\. Disclaimer of Warranty\.[ ]*$/ {
c906108c
SS
21 if ($0 ~ /\f/)
22 {
23 printf " printf_filtered (\"\\n\");\n";
24 }
4de6a07e 25 else if ($0 !~ /^[ ]*15\. Disclaimer of Warranty\.[ ]*$/)
c906108c
SS
26 {
27 printf " printf_filtered (\"";
28 for (i = 1; i < NF; i++)
29 printf "%s\\\"", $i;
30 printf "%s\\n\");\n", $NF;
31 }
32 }
4de6a07e 33/^[ ]*15\. Disclaimer of Warranty\.[ ]*$/ {
c906108c
SS
34 print "}";
35 print "";
36 print "static void";
07aed0eb 37 print "show_warranty_command (char *ignore, int from_tty)";
c906108c 38 print "{";
c906108c 39 }
4de6a07e 40/^[ ]*15\. Disclaimer of Warranty\.[ ]*$/, /^[ ]*END OF TERMS AND CONDITIONS[ ]*$/{
c906108c
SS
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 }
49END {
c906108c
SS
50 print "}";
51 print "";
52 print "void"
07aed0eb 53 print "_initialize_copying (void)";
c906108c 54 print "{";
5ba19b4c 55 print " add_cmd (\"copying\", no_set_class, show_copying_command,";
07aed0eb 56 print " _(\"Conditions for redistributing copies of GDB.\"),";
c906108c 57 print " &showlist);";
5ba19b4c 58 print " add_cmd (\"warranty\", no_set_class, show_warranty_command,";
07aed0eb 59 print " _(\"Various kinds of warranty you do not have.\"),";
c906108c
SS
60 print " &showlist);";
61 print "";
62 print " /* For old-timers, allow \"info copying\", etc. */";
63 print " add_info (\"copying\", show_copying_command,";
07aed0eb 64 print " _(\"Conditions for redistributing copies of GDB.\"));";
c906108c 65 print " add_info (\"warranty\", show_warranty_command,";
07aed0eb 66 print " _(\"Various kinds of warranty you do not have.\"));";
c906108c
SS
67 print "}";
68 }
This page took 0.885112 seconds and 4 git commands to generate.