Skip to content
This repository has been archived by the owner on Sep 21, 2019. It is now read-only.

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyacheslav Matjukhin committed Nov 10, 2010
0 parents commit 16f5693
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 0 deletions.
20 changes: 20 additions & 0 deletions dist.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name = Dist-Zilla-Deb
version = 0.01
author = Vyacheslav Matyukhin <mmcleric@yandex-team.ru>
license = Perl_5
copyright_holder = Yandex LLC

[PodWeaver]

[@Filter]
bundle = @Classic
remove = PodVersion

[AutoPrereq]

[NextRelease]
format = %-7v %{eee MMM dd, yyyy}d

[GithubMeta]

[@Git]
18 changes: 18 additions & 0 deletions lib/Dist/Zilla/App/Command/debc.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package Dist::Zilla::App::Command::debc;

use strict;
use warnings;

use Dist::Zilla::App -command;
use Yandex::X;

sub abstract { 'run debc on generated debian package' }

sub opt_spec {}

sub execute {
my ($self, $opt, $args) = @_;
xsystem('cd .debuild/source && debc');
}

1;
18 changes: 18 additions & 0 deletions lib/Dist/Zilla/App/Command/debi.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package Dist::Zilla::App::Command::debi;

use strict;
use warnings;

use Dist::Zilla::App -command;
use Yandex::X;

sub abstract { 'install generated debian package' }

sub opt_spec {}

sub execute {
my ($self, $opt, $args) = @_;
xsystem('cd .debuild/source && debi');
}

1;
20 changes: 20 additions & 0 deletions lib/Dist/Zilla/App/Command/debrelease.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package Dist::Zilla::App::Command::debrelease;

use strict;
use warnings;

use Dist::Zilla::App -command;
require Dist::Zilla::App::Command::debuild;
use Yandex::X;

sub abstract { 'build and release debian package' }

sub opt_spec {}

sub execute {
my ($self, $opt, $args) = @_;
$self->app->execute_command($self->app->prepare_command('debuild'));
xsystem('cd .debuild/source && debrelease');
}

1;
22 changes: 22 additions & 0 deletions lib/Dist/Zilla/App/Command/debuild.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package Dist::Zilla::App::Command::debuild;

use strict;
use warnings;

use Dist::Zilla::App -command;
use Yandex::X;

sub abstract { 'build debian package' }

sub opt_spec {}

sub execute {
my ($self, $opt, $args) = @_;

xsystem('rm -rf .debuild');
xmkdir('.debuild');
$self->zilla->build_in('.debuild/source');
xsystem('cd .debuild/source && debuild');
}

1;

0 comments on commit 16f5693

Please sign in to comment.