[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 134/483: Make make_devbuild.pl for EHH and ABP Watcher a copy of the generic script in ABP directory

David Prévot taffit at moszumanska.debian.org
Thu Jan 22 21:41:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus-element-hiding-helper.

commit 0dc2527338bb72af81e0454aef9348be31ec667f
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Mon Oct 27 09:54:06 2008 +0100

    Make make_devbuild.pl for EHH and ABP Watcher a copy of the generic script in ABP directory
---
 make_devbuild.pl | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/make_devbuild.pl b/make_devbuild.pl
index 5025ac1..b7ad13a 100644
--- a/make_devbuild.pl
+++ b/make_devbuild.pl
@@ -22,6 +22,13 @@
 
 use strict;
 
+my $manifest = readFile("chrome.manifest");
+unless ($manifest =~ /\bjar:chrome\/(\S+?)\.jar\b/)
+{
+  die "Could not find JAR file name in chrome.manifest";
+}
+my $baseName = $1;
+
 open(VERSION, "version");
 my $version = <VERSION>;
 $version =~ s/[^\w\.]//gs;
@@ -31,5 +38,18 @@ my ($sec, $min, $hour, $day, $mon, $year) = localtime;
 my $build = sprintf("%04i%02i%02i%02i", $year+1900, $mon+1, $day, $hour);
 
 my $locale = (@ARGV ? "-" . join("-", @ARGV) : "");
- at ARGV = ("elemhidehelper-$version+.$build$locale.xpi", "+.$build", @ARGV);
+ at ARGV = ("$baseName-$version+.$build$locale.xpi", "+.$build", @ARGV);
 do './create_xpi.pl';
+
+sub readFile
+{
+  my $file = shift;
+
+  open(local *FILE, "<", $file) || die "Could not read file '$file'";
+  binmode(FILE);
+  local $/;
+  my $result = <FILE>;
+  close(FILE);
+
+  return $result;
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus-element-hiding-helper.git



More information about the Pkg-mozext-commits mailing list