[Pkg-mozext-commits] [adblock-plus] 85/464: Generate version number for Babelzilla builds like for a regular development build

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:05 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 380474f9b1b68cc1b22ace20d960bfbd0e26adb2
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Wed May 19 21:38:12 2010 +0200

    Generate version number for Babelzilla builds like for a regular development build
---
 make_babelzilla_build.pl | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/make_babelzilla_build.pl b/make_babelzilla_build.pl
index d72c689..de55d28 100644
--- a/make_babelzilla_build.pl
+++ b/make_babelzilla_build.pl
@@ -13,22 +13,25 @@ use Packager;
 sub Packager::fixLocales() {}
 
 my %params = ();
-$params{version} = shift @ARGV;
-die "Please specify version number on command line" unless $params{version};
+
+my ($sec, $min, $hour, $day, $mon, $year) = localtime;
+$params{devbuild} = sprintf("%04i%02i%02i", $year+1900, $mon+1, $day);
 
 my $pkg = Packager->new(\%params);
 $pkg->readBasename('chrome.manifest');
+$pkg->readVersion('version');
 $pkg->readLocales('chrome/locale', 1);
 $pkg->readLocaleData('chrome/locale');
 
 my $baseName = $pkg->{baseName};
-my $xpiFile = "$baseName-$params{version}.xpi";
+my $version = $pkg->{version};
+my $xpiFile = "$baseName-$version.xpi";
 
 chdir('chrome');
 $pkg->makeJAR("$baseName.jar", 'content', 'skin', 'locale', '-/tests', '-/mochitest', '-/.incomplete');
 chdir('..');
 
-my @files = grep {-e $_} ('components', 'modules', 'defaults', 'install.rdf', 'bootstrap.js', 'chrome.manifest', 'icon.png');
+my @files = grep {-e $_} ('components', <modules/*.jsm>, 'defaults', 'install.rdf', 'bootstrap.js', 'chrome.manifest', 'icon.png');
 
 my $targetAppNum = 0;
 $pkg->{postprocess_line} = \&postprocessInstallRDF;

-- 
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