App-Git-Perl
view release on metacpan or search on metacpan
script/git-perl view on Meta::CPAN
}
if ( $modulefile ) {
$module = qx{ cd "${gitdirs}"; cat "$modulefile" | grep "^\\s*package " | sed -e "s/package //" | cut -d";" -f1 | head -n 1 };
chomp( $module );
if ( not $module ) {
$module = $modulefile;
}
$VERSION = qx{ cd "${gitdirs}"; cat "$modulefile" | grep VERSION | grep "[0-9]" | cut -d\\' -f2 | cut -d\\" -f2 | head -n 1 };
chomp( $VERSION );
} else {
# This is just guessing. It returns our...VERSION from first found file.
$module = qx{ cd "${gitdirs}"; cd "$local/" ; grep -rsn VERSION * | grep our | cut -d":" -f1 };
chomp( $module );
$VERSION = qx{ cd "${gitdirs}"; cd "$local/" ; grep -rsn VERSION * | grep our | cut -d\\' -f2 | cut -d\\" -f2 | head -n 1 };
chomp( $VERSION );
}
# $module/$VERSION is just provisioning data, not really used anywhere
print "$local $module $VERSION\n";
}
exit;
( run in 0.770 second using v1.01-cache-2.11-cpan-702932259ff )