[Pkg-mozext-commits] [adblock-plus] 34/464: Make errors.html show Adblock Plus version and source code revision
David Prévot
taffit at moszumanska.debian.org
Tue Jul 22 20:43:59 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository adblock-plus.
commit c9a0f4f9e248a64146278d89d9762300a372ed6e
Author: Wladimir Palant <trev at adblockplus.org>
Date: Wed Jun 3 23:07:21 2009 +0200
Make errors.html show Adblock Plus version and source code revision
---
Packager.pm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Packager.pm b/Packager.pm
index f0ab18c..0d8090e 100644
--- a/Packager.pm
+++ b/Packager.pm
@@ -7,6 +7,8 @@ sub new
{
my ($class, $params) = @_;
+ $params->{build} = `hg tip --template '{node|short}'` unless exists($params->{build});
+
my $self = bless($params, $class);
return $self;
@@ -88,6 +90,7 @@ sub cp
s/\r//g;
s/^((?: )+)/"\t" x (length($1)\/2)/e;
s/\{\{VERSION\}\}/$self->{version}/g if $extendedTextMode;
+ s/\{\{BUILD\}\}/$self->{build}/g if $extendedTextMode;
if ($extendedTextMode && /\{\{LOCALE\}\}/)
{
my $loc = "";
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git
More information about the Pkg-mozext-commits
mailing list