Set up mdgrep for git instead of cvs.

This commit is contained in:
keni
2015-03-17 18:44:53 +02:00
committed by Pasi Kallinen
parent 793c8577b9
commit 8ac52b247a
2 changed files with 8 additions and 6 deletions
+2
View File
@@ -0,0 +1,2 @@
*.pl filter=NHtext merge=NHsubst
*.[ly] filter=NHtext merge=NHsubst
+6 -6
View File
@@ -1,5 +1,5 @@
#!perl #!perl
# NetHack 3.5 mdgrep.pl $Date$ $Revision$ # NetHack 3.5 mdgrep.pl $NHDT-Date$ $NHDT-Revision$
# Copyright (c) Kenneth Lorber, Kensington, Maryland # Copyright (c) Kenneth Lorber, Kensington, Maryland
# NetHack may be freely redistributed. See license for details. # NetHack may be freely redistributed. See license for details.
@@ -54,13 +54,13 @@
$outfile = "mdgrep.h"; $outfile = "mdgrep.h";
sub start_file { sub start_file {
($rev) = ('$Revision$') =~ m/: (.*) .$/; ($rev) = ('$NHDT-Revision$') =~ m/: (.*) .$/;
my $date = '$Date$'; my $date = '$NHDT-Date$';
my $revision = '$Revision$'; my $revision = '$NHDT-Revision$';
open(OUT, ">$outfile") || die "open $outfile: $!"; open(OUT, ">$outfile") || die "open $outfile: $!";
# NB: Date and Revision below will be modified when mdgrep.h is written to # 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 # git - this is correct (but it means you must commit changes to mdgrep.pl
# before generating mdgrep.h and committing that file. # before generating mdgrep.h and committing that file).
print OUT <<E_O_M; print OUT <<E_O_M;
/* /*
* NetHack 3.5 $outfile $date $revision * NetHack 3.5 $outfile $date $revision