summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/stex/bin/filedate
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-04-07 20:49:10 +0000
committerKarl Berry <karl@freefriends.org>2016-04-07 20:49:10 +0000
commitddfe3a4eaf95167482e923d4da3de2917a7dbfbb (patch)
tree0acc1bb60b37392451f5e79e00c33c487c19abcf /Master/texmf-dist/source/latex/stex/bin/filedate
parenta04ae5a947a6b06bc717719f6ad63e6de5cb5af6 (diff)
stex (7apr16)
git-svn-id: svn://tug.org/texlive/trunk@40320 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/stex/bin/filedate')
-rwxr-xr-xMaster/texmf-dist/source/latex/stex/bin/filedate6
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/stex/bin/filedate b/Master/texmf-dist/source/latex/stex/bin/filedate
index 6ea1a5d6870..af49b6550dd 100755
--- a/Master/texmf-dist/source/latex/stex/bin/filedate
+++ b/Master/texmf-dist/source/latex/stex/bin/filedate
@@ -14,9 +14,9 @@ use Pod::Usage;
use Cwd qw(abs_path);
my ($file) = @ARGV;
-my $date = `svn info $file`;
-$date =~ /Last Changed Date: (\d+)-(\d+)-(\d+)/;
-$date = $1.'/'.$2.'/'.$3;
+my $date = `git log --format='%ai' $file`;
+$date = substr($date, 0, index($date, ' '));
+$date =~ s/-/\//g;
$file = abs_path($file);
open(IN,"<$file");
my @lines = ();