Add CRASHREPORT, show contact form on panic/impossible
When calling panic() or impossible(), create the option of opening a browser window with most of the fields already populated. Code for MacOS and linux is included; other ports are affected by argument change to early_init which are done but not tested. To enable, define CRASHREPORT in config.h and set CRASHREPORTURL in sysconf to (for the moment at least) http[s]://www.nethack.org/common/contactcr.html Adds --grep-defined option to makedefs for Makefiles. Adds "bid" (binary identifier), an MD4 of the main nethack binary. This is ONLY for helping (in the future) contact.html to set the "NetHack from" field automatically for our own binaries. This can be faked, but the user can lie so nothing lost. There's nothing magic about MD4; other ports can use anything that prodcues a long apparently random string we can match against. - new option --bidshow for us to get the MD4 of a released binary so I can add it to the website. Only available in wizard mode and not in nethack.6. - typo macos -> macosx in hints file No support for packaging builds as I'm not sure what that would look like. Adds a javascript helper for MacOS. Adds a lua helper for linux (and builds and installs nhlua).
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!perl
|
||||
# NetHack 3.7 mdgrep.pl $NHDT-Date: 1596498260 2020/08/03 23:44:20 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.20 $
|
||||
# NetHack 3.7 mdgrep.pl $NHDT-Date: 1693083351 2023/08/26 20:55:51 $ $NHDT-Branch: keni-crashweb2 $:$NHDT-Revision: 1.24 $
|
||||
# Copyright (c) Kenneth Lorber, Kensington, Maryland
|
||||
# NetHack may be freely redistributed. See license for details.
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
VAR_PLAYGROUND DLB SHELL SUSPEND NOSAVEONHANGUP HANGUPHANDLING
|
||||
BSD_JOB_CONTROL MAIL POSIX_JOB_CONTROL INSURANCE
|
||||
UNICODE_DRAWING UNICODE_WIDEWINPORT UNICODE_PLAYERTEXT
|
||||
CRASHREPORT
|
||||
/;
|
||||
|
||||
# Miscellaneous
|
||||
@@ -53,10 +54,10 @@
|
||||
|
||||
$outfile = "mdgrep.h";
|
||||
sub start_file {
|
||||
($rev) = ('$NHDT-Revision: 1.20 $') =~ m/: (.*) .$/;
|
||||
my $date = '$NHDT-Date: 1596498261 2020/08/03 23:44:21 $';
|
||||
my $branch = '$NHDT-Branch: NetHack-3.7 $';
|
||||
my $revision = '$NHDT-Revision: 1.20 $';
|
||||
($rev) = ('$NHDT-Revision: 1.24 $') =~ m/: (.*) .$/;
|
||||
my $date = '$NHDT-Date: 1693083351 2023/08/26 20:55:51 $';
|
||||
my $branch = '$NHDT-Branch: keni-crashweb2 $';
|
||||
my $revision = '$NHDT-Revision: 1.24 $';
|
||||
open(OUT, ">$outfile") || die "open $outfile: $!";
|
||||
# NB: Date and Revision below will be modified when mdgrep.h is written to
|
||||
# git - this is correct (but it means you must commit changes to mdgrep.pl
|
||||
|
||||
Reference in New Issue
Block a user