This repository has been archived by the owner on Sep 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vyacheslav Matjukhin
committed
Nov 10, 2010
0 parents
commit 16f5693
Showing
5 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |