]> granicus.if.org Git - nethack/commitdiff
Set up mdgrep for git instead of cvs.
authorkeni <keni@his.com>
Fri, 13 Feb 2015 22:54:15 +0000 (17:54 -0500)
committerPasi Kallinen <paxed@alt.org>
Tue, 17 Mar 2015 16:44:53 +0000 (18:44 +0200)
util/.gitattributes [new file with mode: 0644]
util/mdgrep.pl

diff --git a/util/.gitattributes b/util/.gitattributes
new file mode 100644 (file)
index 0000000..15e23d2
--- /dev/null
@@ -0,0 +1,2 @@
+*.pl filter=NHtext merge=NHsubst
+*.[ly] filter=NHtext merge=NHsubst
index ba6bbb92a76ad354f042b746384a2c105bc464b8..c75cc35919f3b72b8f7f72522d298b5887fd0621 100644 (file)
@@ -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.
 
 
 $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 <<E_O_M;
 /*
  * NetHack 3.5  $outfile  $date $revision