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