1999-04-16 03:35:26 +02:00
|
|
|
|
BEGIN {
|
|
|
|
|
FS="\"";
|
2012-07-27 22:23:05 +02:00
|
|
|
|
print "/* ==> Do not modify this file!! " \
|
|
|
|
|
"-*- buffer-read-only: t -*- vi" \
|
|
|
|
|
":set ro:";
|
|
|
|
|
print " It is created automatically by copying.awk.";
|
|
|
|
|
print " Modify copying.awk instead. <== */";
|
1999-04-16 03:35:26 +02:00
|
|
|
|
print ""
|
|
|
|
|
print "#include \"defs.h\""
|
|
|
|
|
print "#include \"command.h\""
|
|
|
|
|
print "#include \"gdbcmd.h\""
|
|
|
|
|
print ""
|
2000-06-27 08:45:43 +02:00
|
|
|
|
print "static void show_copying_command (char *, int);"
|
1999-04-16 03:35:26 +02:00
|
|
|
|
print ""
|
2000-06-27 08:45:43 +02:00
|
|
|
|
print "static void show_warranty_command (char *, int);"
|
1999-04-16 03:35:26 +02:00
|
|
|
|
print ""
|
2000-06-27 08:45:43 +02:00
|
|
|
|
print "void _initialize_copying (void);"
|
1999-04-16 03:35:26 +02:00
|
|
|
|
print ""
|
|
|
|
|
print "static void";
|
2007-08-23 22:19:32 +02:00
|
|
|
|
print "show_copying_command (char *ignore, int from_tty)";
|
1999-04-16 03:35:26 +02:00
|
|
|
|
print "{";
|
|
|
|
|
}
|
2007-08-23 22:33:48 +02:00
|
|
|
|
NR == 1,/^[ ]*15\. Disclaimer of Warranty\.[ ]*$/ {
|
1999-04-16 03:35:26 +02:00
|
|
|
|
if ($0 ~ //)
|
|
|
|
|
{
|
|
|
|
|
printf " printf_filtered (\"\\n\");\n";
|
|
|
|
|
}
|
2007-08-23 22:33:48 +02:00
|
|
|
|
else if ($0 !~ /^[ ]*15\. Disclaimer of Warranty\.[ ]*$/)
|
1999-04-16 03:35:26 +02:00
|
|
|
|
{
|
|
|
|
|
printf " printf_filtered (\"";
|
|
|
|
|
for (i = 1; i < NF; i++)
|
|
|
|
|
printf "%s\\\"", $i;
|
|
|
|
|
printf "%s\\n\");\n", $NF;
|
|
|
|
|
}
|
|
|
|
|
}
|
2007-08-23 22:33:48 +02:00
|
|
|
|
/^[ ]*15\. Disclaimer of Warranty\.[ ]*$/ {
|
1999-04-16 03:35:26 +02:00
|
|
|
|
print "}";
|
|
|
|
|
print "";
|
|
|
|
|
print "static void";
|
2007-08-23 22:19:32 +02:00
|
|
|
|
print "show_warranty_command (char *ignore, int from_tty)";
|
1999-04-16 03:35:26 +02:00
|
|
|
|
print "{";
|
|
|
|
|
}
|
2007-08-23 22:33:48 +02:00
|
|
|
|
/^[ ]*15\. Disclaimer of Warranty\.[ ]*$/, /^[ ]*END OF TERMS AND CONDITIONS[ ]*$/{
|
1999-04-16 03:35:26 +02:00
|
|
|
|
if (! ($0 ~ /^[ ]*END OF TERMS AND CONDITIONS[ ]*$/))
|
|
|
|
|
{
|
|
|
|
|
printf " printf_filtered (\"";
|
|
|
|
|
for (i = 1; i < NF; i++)
|
|
|
|
|
printf "%s\\\"", $i;
|
|
|
|
|
printf "%s\\n\");\n", $NF;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
END {
|
|
|
|
|
print "}";
|
|
|
|
|
print "";
|
|
|
|
|
print "void"
|
2007-08-23 22:19:32 +02:00
|
|
|
|
print "_initialize_copying (void)";
|
1999-04-16 03:35:26 +02:00
|
|
|
|
print "{";
|
2012-07-26 19:21:06 +02:00
|
|
|
|
print " add_cmd (\"copying\", no_set_class, show_copying_command,";
|
2007-08-23 22:19:32 +02:00
|
|
|
|
print " _(\"Conditions for redistributing copies of GDB.\"),";
|
1999-04-16 03:35:26 +02:00
|
|
|
|
print " &showlist);";
|
2012-07-26 19:21:06 +02:00
|
|
|
|
print " add_cmd (\"warranty\", no_set_class, show_warranty_command,";
|
2007-08-23 22:19:32 +02:00
|
|
|
|
print " _(\"Various kinds of warranty you do not have.\"),";
|
1999-04-16 03:35:26 +02:00
|
|
|
|
print " &showlist);";
|
|
|
|
|
print "";
|
|
|
|
|
print " /* For old-timers, allow \"info copying\", etc. */";
|
|
|
|
|
print " add_info (\"copying\", show_copying_command,";
|
2007-08-23 22:19:32 +02:00
|
|
|
|
print " _(\"Conditions for redistributing copies of GDB.\"));";
|
1999-04-16 03:35:26 +02:00
|
|
|
|
print " add_info (\"warranty\", show_warranty_command,";
|
2007-08-23 22:19:32 +02:00
|
|
|
|
print " _(\"Various kinds of warranty you do not have.\"));";
|
1999-04-16 03:35:26 +02:00
|
|
|
|
print "}";
|
|
|
|
|
}
|