Git-Repository
view release on metacpan or search on metacpan
eg/build-git view on Meta::CPAN
# Fix various issues in the Git sources
# Fix GIT-VERSION-GEN to use `git describe` instead of `git-describe`
if (
cmp_git( $version, '1.3.3' ) <= 0
&& cmp_git( '1.1.0', $version ) <= 0
&& do { no warnings; `git-describe`; $? != 0 }
)
{
local ( $^I, @ARGV ) = ( '', 'GIT-VERSION-GEN' );
s/git-describe/git describe/, print while <>;
}
# fix GIT_VERSION in the Makefile
if ( cmp_git( $version, '1.0.9' ) == 0 ) {
local ( $^I, @ARGV ) = ( '', 'Makefile' );
s/^GIT_VERSION = .*/GIT_VERSION = $version/, print while <>;
}
# add missing #include <sys/resource.h>
elsif ( cmp_git( $version, '1.7.5.rc0' ) <= 0
&& cmp_git( '1.7.4.2', $version ) <= 0 )
{
$r->run( 'cherry-pick', '-n',
'ebae9ff95de2d0b36b061c7db833df4f7e01a41d' );
( run in 1.300 second using v1.01-cache-2.11-cpan-49f99fa48dc )