[Pkg-mozext-commits] [adblock-plus] 90/464: Automatically create source code package on release

David Prévot taffit at moszumanska.debian.org
Tue Jul 22 20:44:06 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 70491cbc021804793d7c82e4a619dc487d5672a0
Author: Wladimir Palant <trev at adblockplus.org>
Date:   Fri Aug 20 10:48:18 2010 +0200

    Automatically create source code package on release
 make_release.pl | 24 +++++++++++++++++-------
 1 file changed, 17 insertions(+), 7 deletions(-)

diff --git a/make_release.pl b/make_release.pl
index e7e5e53..b9b628f 100644
--- a/make_release.pl
+++ b/make_release.pl
@@ -28,24 +28,34 @@ die "Version number not specified" unless @ARGV;
 my $version = $ARGV[0];
 $version =~ s/[^\w\.]//gs;
+my $branch = $version;
+$branch =~ s/\./_/g;
+$branch = $BRANCH_NAME."_".$branch."_RELEASE";
 open(VERSION, ">version");
 print VERSION "$ARGV[0]\n";
+system(qq(hg commit -m "Releasing $extensionName $version"));
+system(qq(hg tag $branch));
+system(qq(hg tag -R ../buildtools $branch));
 @ARGV = ("../downloads/$baseName-$version.xpi");
 do 'buildtools/create_xpi.pl';
 die $@ if $@;
+system('hg', 'archive', '-X', '.hgtags', 'tmp');
+system('hg', 'archive', '-R', 'buildtools', '-X', 'buildtools/.hgtags', 'tmp/buildtools');
+opendir(local *TMP, 'tmp');
+system('tar', 'czf', "../downloads/$baseName-$version-source.tgz", '--directory=tmp', '--numeric-owner', grep {/[^.]/} readdir(TMP));
 system("hg add -R ../downloads ../downloads/$baseName-$version.xpi");
-system(qq(hg commit -m "Releasing $extensionName $version"));
+system("hg add -R ../downloads ../downloads/$baseName-$version-source.tgz");
 system(qq(hg commit -R ../downloads -m "Releasing $extensionName $version"));
-my $branch = $version;
-$branch =~ s/\./_/g;
-$branch = $BRANCH_NAME."_".$branch."_RELEASE";
-system(qq(hg tag $branch));
 system(qq(hg tag -R ../downloads $branch));
-system(qq(hg tag -R ../buildtools $branch));
 system(qq(hg push));
 system(qq(hg push -R ../downloads));

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