From: keni Date: Fri, 13 Feb 2015 22:54:15 +0000 (-0500) Subject: Set up mdgrep for git instead of cvs. X-Git-Tag: NetHack-3.6.0_RC01~690 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7ea921ea0405a57d19bceb6e353f54659c9b7b1;p=nethack Set up mdgrep for git instead of cvs. --- diff --git a/util/.gitattributes b/util/.gitattributes new file mode 100644 index 000000000..15e23d268 --- /dev/null +++ b/util/.gitattributes @@ -0,0 +1,2 @@ +*.pl filter=NHtext merge=NHsubst +*.[ly] filter=NHtext merge=NHsubst diff --git a/util/mdgrep.pl b/util/mdgrep.pl index ba6bbb92a..c75cc3591 100644 --- a/util/mdgrep.pl +++ b/util/mdgrep.pl @@ -1,5 +1,5 @@ #!perl -# NetHack 3.5 mdgrep.pl $Date$ $Revision$ +# NetHack 3.5 mdgrep.pl $NHDT-Date$ $NHDT-Revision$ # Copyright (c) Kenneth Lorber, Kensington, Maryland # NetHack may be freely redistributed. See license for details. @@ -54,13 +54,13 @@ $outfile = "mdgrep.h"; sub start_file { - ($rev) = ('$Revision$') =~ m/: (.*) .$/; - my $date = '$Date$'; - my $revision = '$Revision$'; + ($rev) = ('$NHDT-Revision$') =~ m/: (.*) .$/; + my $date = '$NHDT-Date$'; + my $revision = '$NHDT-Revision$'; open(OUT, ">$outfile") || die "open $outfile: $!"; # NB: Date and Revision below will be modified when mdgrep.h is written to -# cvs - this is correct (but it means you must commit changes to mdgrep.pl -# before generating mdgrep.h and committing that file. +# git - this is correct (but it means you must commit changes to mdgrep.pl +# before generating mdgrep.h and committing that file). print OUT <