[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 151/483: Restructuring repository to have all extensions at top level

David Prévot taffit at moszumanska.debian.org
Thu Jan 22 21:41:35 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 aaf76440b811b538690414695bce97785c0b1a03
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Mon Jan 12 13:52:20 2009 +0100

    Restructuring repository to have all extensions at top level
---
 create_xpi.pl   | 15 ++++++++++++++-
 make_release.pl |  6 +++---
 2 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/create_xpi.pl b/create_xpi.pl
index 7a44083..bf4bd9a 100644
--- a/create_xpi.pl
+++ b/create_xpi.pl
@@ -7,7 +7,7 @@
 
 use strict;
 use warnings;
-use lib qw(. ..);
+use lib qw(..);
 use Packager;
 
 my $manifest = readFile("chrome.manifest");
@@ -25,6 +25,10 @@ if (@ARGV && $ARGV[0] =~ /^\+/)
   $params{devbuild} = $ARGV[0];
   shift @ARGV;
 }
+else
+{
+  $params{postprocess_line} = \&removeTimeLine;
+}
 
 $params{locales} = \@ARGV if @ARGV;
 
@@ -41,6 +45,15 @@ my @files = grep {-e $_} ('components', 'defaults', 'install.js', 'install.rdf',
 $pkg->makeXPI($xpiFile, "chrome/$baseName.jar", @files);
 unlink("chrome/$baseName.jar");
 
+sub removeTimeLine
+{
+  my ($file, $line) = @_;
+
+  return "\n" if $file =~ /\.js$/ && $line =~ /\btimeLine\.log\(/;
+
+  return $line;
+}
+
 sub readFile
 {
   my $file = shift;
diff --git a/make_release.pl b/make_release.pl
index e452a2c..a160ae9 100644
--- a/make_release.pl
+++ b/make_release.pl
@@ -17,7 +17,7 @@ open(VERSION, ">version");
 print VERSION $ARGV[0];
 close(VERSION);
 
- at ARGV = ("../../downloads/elemhidehelper-$version.xpi");
+ at ARGV = ("../downloads/elemhidehelper-$version.xpi");
 do './create_xpi.pl';
 
 opendir(LOCALES, "chrome/locale");
@@ -27,11 +27,11 @@ closedir(LOCALES);
 # Create new single-locale builds
 for my $locale (@locales)
 {
-  @ARGV = ("../../downloads/elemhidehelper-$version-$locale.xpi", $locale);
+  @ARGV = ("../downloads/elemhidehelper-$version-$locale.xpi", $locale);
   do './create_xpi.pl';
 }
 
-chdir('../..');
+chdir('..');
 system("hg add downloads/elemhidehelper-$version.xpi");
 system(qq(hg commit -m "Releasing Element Hiding Helper $version" downloads src/elemhidehelper));
 

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