]> granicus.if.org Git - nethack/commitdiff
Convert mdgrep from cvs to git.
authorkeni <keni@his.com>
Sat, 14 Feb 2015 01:32:09 +0000 (20:32 -0500)
committerPasi Kallinen <paxed@alt.org>
Tue, 17 Mar 2015 16:44:54 +0000 (18:44 +0200)
util/mdgrep.pl

index c75cc35919f3b72b8f7f72522d298b5887fd0621..d291b1464cb5a2866548d21afcb781d138f2676d 100644 (file)
@@ -1,5 +1,5 @@
 #!perl
-# NetHack 3.5  mdgrep.pl  $NHDT-Date$  $NHDT-Revision$
+# NetHack 3.5  mdgrep.pl  $NHDT-Date: 1423877528 2015/02/14 01:32:08 $  $NHDT-Revision: 1.7 $
 # Copyright (c) Kenneth Lorber, Kensington, Maryland
 # NetHack may be freely redistributed.  See license for details.
 
@@ -54,9 +54,9 @@
 
 $outfile = "mdgrep.h";
 sub start_file {
-       ($rev) = ('$NHDT-Revision$') =~ m/: (.*) .$/;
-       my $date = '$NHDT-Date$';
-       my $revision = '$NHDT-Revision$';
+       ($rev) = ('$NHDT-Revision: 1.7 $') =~ m/: (.*) .$/;
+       my $date = '$NHDT-Date: 1423877529 2015/02/14 01:32:09 $';
+       my $revision = '$NHDT-Revision: 1.7 $';
        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