2011-06-02 08:55:00 +00:00
|
|
|
#!/usr/bin/perl
|
|
|
|
# apk add perl-libwww perl-json
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
2017-01-31 08:20:14 +00:00
|
|
|
use 5.016;
|
|
|
|
use feature "switch";
|
|
|
|
no if $] >= 5.018, warnings => "experimental::smartmatch";
|
|
|
|
|
2011-06-02 08:55:00 +00:00
|
|
|
use LWP::UserAgent;
|
|
|
|
use LWP::ConnCache;
|
|
|
|
use CPAN::Meta;
|
|
|
|
use Module::CoreList;
|
|
|
|
use JSON;
|
|
|
|
|
|
|
|
my $license_mappings = {
|
2019-04-22 16:16:31 +00:00
|
|
|
"perl_5" => "GPL-1.0-or-later Artistic-1.0-Perl",
|
|
|
|
"artistic_2" => "Artistic-2.0",
|
|
|
|
"gpl_3" => "GPL-3.0-only",
|
2011-06-02 08:55:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
my $package_mappings = {
|
|
|
|
"LWP" => "perl-libwww",
|
|
|
|
"TermReadKey" => "perl-term-readkey",
|
|
|
|
};
|
|
|
|
our $packager = "";
|
|
|
|
my $template = <<'EOF';
|
2017-01-31 08:20:14 +00:00
|
|
|
# Automatically generated by apkbuild-cpan, template 2
|
|
|
|
[% authors %]
|
2011-06-02 08:55:00 +00:00
|
|
|
pkgname=[% pkgname %]
|
|
|
|
_pkgreal=[% pkgreal %]
|
|
|
|
pkgver=[% pkgver %]
|
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Perl module for [% pkgreal %]"
|
2018-11-25 01:51:08 +00:00
|
|
|
url="https://metacpan.org/release/[% pkgreal %]/"
|
2011-06-02 08:55:00 +00:00
|
|
|
arch="noarch"
|
2019-04-22 16:16:31 +00:00
|
|
|
license="GPL-1.0-or-later Artistic-1.0-Perl"
|
2011-06-02 08:55:00 +00:00
|
|
|
cpandepends=""
|
|
|
|
cpanmakedepends=""
|
2017-01-31 08:20:14 +00:00
|
|
|
cpancheckdepends=""
|
2011-06-02 08:55:00 +00:00
|
|
|
depends="$cpandepends"
|
|
|
|
makedepends="perl-dev $cpanmakedepends"
|
2017-01-31 08:20:14 +00:00
|
|
|
checkdepends="$cpancheckdepends"
|
2011-06-02 08:55:00 +00:00
|
|
|
subpackages="$pkgname-doc"
|
|
|
|
source="[% source %]"
|
2016-06-12 13:52:56 +00:00
|
|
|
builddir="$srcdir/$_pkgreal-$pkgver"
|
2011-06-02 08:55:00 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
:
|
|
|
|
}
|
|
|
|
|
2019-03-21 10:25:52 +00:00
|
|
|
check() {
|
2011-06-02 08:55:00 +00:00
|
|
|
:
|
|
|
|
}
|
|
|
|
|
2019-03-21 10:25:52 +00:00
|
|
|
package() {
|
2017-01-31 08:20:14 +00:00
|
|
|
:
|
|
|
|
}
|
|
|
|
|
2011-06-02 08:55:00 +00:00
|
|
|
EOF
|
|
|
|
|
|
|
|
our $ua = LWP::UserAgent->new();
|
|
|
|
our $json = JSON->new;
|
|
|
|
$ua->env_proxy;
|
|
|
|
$ua->conn_cache(LWP::ConnCache->new());
|
|
|
|
|
2017-01-31 08:20:14 +00:00
|
|
|
sub read_file {
|
2011-06-02 08:55:00 +00:00
|
|
|
my ($filename) = @_;
|
|
|
|
local $/;
|
|
|
|
open my $fh, "<", $filename or die "could not open $filename: $!";
|
|
|
|
return <$fh>;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub read_assignments_from_file {
|
|
|
|
my ($filename) = @_;
|
2017-01-31 08:20:14 +00:00
|
|
|
return () if ( ! -e $filename );
|
2011-06-02 08:55:00 +00:00
|
|
|
my $text = read_file($filename);
|
|
|
|
my %sline = $text =~ /^(\w+)\s*=\s*([^\"\n]*)$/mg;
|
|
|
|
my %mline = $text =~ /^(\w+)\s*=\s*\"([^\"]*)\"$/mg;
|
|
|
|
my %hash = ( %sline, %mline );
|
2017-01-31 08:20:14 +00:00
|
|
|
|
|
|
|
my $authors = join("\n", $text =~ /^# Contributor: .*$/mg, $text =~ /^# Maintainer: .*$/mg);
|
|
|
|
$hash{'authors'} = $authors if length($authors) > 1;
|
|
|
|
|
2011-06-02 08:55:00 +00:00
|
|
|
return \%hash;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub map_cpan_to_apk {
|
|
|
|
my ($cpan_distrib) = @_;
|
|
|
|
return $package_mappings->{$cpan_distrib} if exists $package_mappings->{$cpan_distrib};
|
|
|
|
# most packages are named according to the
|
|
|
|
# distribution name
|
|
|
|
return 'perl-' . lc $cpan_distrib;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub read_apkbuild {
|
|
|
|
return read_assignments_from_file("APKBUILD");
|
|
|
|
}
|
|
|
|
|
|
|
|
sub write_apkbuild {
|
2018-11-25 17:43:37 +00:00
|
|
|
my ($distdata, $authors, $moddata) = @_;
|
2011-06-02 08:55:00 +00:00
|
|
|
|
2018-11-26 03:18:10 +00:00
|
|
|
my $cpanid = $distdata->{id};
|
2011-06-02 08:55:00 +00:00
|
|
|
$cpanid = substr($cpanid, 0, 1) . "/" . substr($cpanid, 0, 2) . "/$cpanid";
|
2017-01-31 08:20:14 +00:00
|
|
|
|
2011-06-02 08:55:00 +00:00
|
|
|
my %repl = (
|
2017-01-31 08:20:14 +00:00
|
|
|
authors => ($authors or "# Contributor: $packager\n# Maintainer: $packager"),
|
2018-11-25 17:43:37 +00:00
|
|
|
pkgname => map_cpan_to_apk($moddata->{distribution}),
|
2019-03-21 10:25:52 +00:00
|
|
|
pkgreal => $moddata->{distribution},
|
|
|
|
pkgver => $moddata->{version},
|
2019-03-21 11:52:30 +00:00
|
|
|
source => $moddata->{download_url} =~ s/$moddata->{version}/\$pkgver/r,
|
2019-03-22 01:18:47 +00:00
|
|
|
pkgdesc => $distdata->{abstract},
|
2011-06-02 08:55:00 +00:00
|
|
|
);
|
|
|
|
$template =~ s/\[% (.*?) %\]/$repl{$1}/g;
|
|
|
|
|
|
|
|
open my $fh, '>', "APKBUILD" or die;
|
|
|
|
print $fh $template;
|
|
|
|
close $fh;
|
|
|
|
|
|
|
|
say "Wrote $repl{pkgname}/APKBUILD";
|
|
|
|
}
|
|
|
|
|
|
|
|
sub parse_deps {
|
|
|
|
my ($reqs) = @_;
|
|
|
|
my $distfiles = {};
|
|
|
|
my $response;
|
|
|
|
my $deps = "";
|
|
|
|
|
|
|
|
for my $module ($reqs->required_modules) {
|
2019-03-21 11:04:44 +00:00
|
|
|
if (Module::CoreList->is_core($module)) {
|
|
|
|
my $perlver = Module::CoreList->first_release($module);
|
2011-06-02 08:55:00 +00:00
|
|
|
say "$module is part of core perl since $perlver.";
|
|
|
|
next;
|
|
|
|
}
|
|
|
|
next if $module eq 'perl';
|
|
|
|
|
|
|
|
# map module name to package name
|
2018-11-25 01:51:08 +00:00
|
|
|
$response = $ua->get("https://fastapi.metacpan.org/module/$module");
|
2011-06-02 08:55:00 +00:00
|
|
|
$response->is_success or die $response->status_line;
|
|
|
|
my $moddata = $json->decode($response->decoded_content);
|
|
|
|
$moddata->{error} and die "Error trying to locate $module: $moddata->{error}\n";
|
2018-11-25 01:51:08 +00:00
|
|
|
$distfiles->{$moddata->{distribution}} = $moddata;
|
2011-06-02 08:55:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# map package names to alpine packages
|
2016-07-28 09:17:14 +00:00
|
|
|
foreach ( keys %{ $distfiles } ) {
|
2018-11-25 17:43:37 +00:00
|
|
|
$response = $ua->get("https://fastapi.metacpan.org/release/$_");
|
2011-06-02 08:55:00 +00:00
|
|
|
$response->is_success or die $response->status_line;
|
|
|
|
my $distdata = $json->decode($response->decoded_content);
|
|
|
|
$distdata->{error} and die "Error trying to locate $_: $distdata->{error}\n";
|
|
|
|
|
|
|
|
my $pkgname = map_cpan_to_apk($distdata->{name});
|
|
|
|
$deps .= "$pkgname ";
|
|
|
|
}
|
2017-01-31 08:20:14 +00:00
|
|
|
$deps =~ s/\h+/ /g;
|
|
|
|
$deps =~ s/ $//;
|
2011-06-02 08:55:00 +00:00
|
|
|
return $deps;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
sub prepare_tree {
|
|
|
|
system("abuild checksum unpack prepare") == 0 or
|
|
|
|
die "abuild checksum failed";
|
|
|
|
}
|
|
|
|
|
|
|
|
sub update_functions {
|
|
|
|
my $apkbuild = read_apkbuild;
|
|
|
|
my $metaprefix = "src/" . $apkbuild->{'_pkgreal'} . "-" . $apkbuild->{'pkgver'} . "/";
|
|
|
|
my $build_func;
|
2017-01-31 08:20:14 +00:00
|
|
|
my $check_func;
|
2011-06-02 08:55:00 +00:00
|
|
|
my $package_func;
|
|
|
|
|
|
|
|
my $text = read_file "APKBUILD";
|
|
|
|
if (-e "$metaprefix/Build.PL" ) {
|
|
|
|
$build_func = <<'EOF';
|
|
|
|
build() {
|
2016-06-12 13:58:47 +00:00
|
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
2019-03-21 10:25:52 +00:00
|
|
|
perl Build.PL installdirs=vendor
|
2017-07-11 12:04:36 +00:00
|
|
|
./Build
|
2011-06-02 08:55:00 +00:00
|
|
|
}
|
|
|
|
EOF
|
|
|
|
$package_func = <<'EOF';
|
|
|
|
package() {
|
2017-07-11 11:57:29 +00:00
|
|
|
./Build install destdir="$pkgdir"
|
2011-06-02 08:55:00 +00:00
|
|
|
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
|
|
|
}
|
2017-07-11 12:04:36 +00:00
|
|
|
EOF
|
|
|
|
$check_func = <<'EOF';
|
|
|
|
check() {
|
|
|
|
./Build test
|
|
|
|
}
|
2011-06-02 08:55:00 +00:00
|
|
|
EOF
|
|
|
|
} else {
|
|
|
|
$build_func = <<'EOF';
|
|
|
|
build() {
|
2016-06-12 13:58:47 +00:00
|
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
2019-03-21 10:25:52 +00:00
|
|
|
PERL_MM_USE_DEFAULT=1 perl -I. Makefile.PL INSTALLDIRS=vendor
|
2017-01-31 08:20:14 +00:00
|
|
|
make
|
2011-06-02 08:55:00 +00:00
|
|
|
}
|
|
|
|
EOF
|
|
|
|
$package_func = <<'EOF';
|
|
|
|
package() {
|
2017-07-11 11:57:29 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
2011-06-02 08:55:00 +00:00
|
|
|
find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
|
|
|
|
}
|
2017-01-31 08:20:14 +00:00
|
|
|
EOF
|
|
|
|
$check_func = <<'EOF';
|
|
|
|
check() {
|
|
|
|
export CFLAGS=$(perl -MConfig -E 'say $Config{ccflags}')
|
|
|
|
make test
|
|
|
|
}
|
2011-06-02 08:55:00 +00:00
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
$text =~ s/^build\(\) \{.*?^\}\n/$build_func/smg or
|
|
|
|
die "Can't replace build function APKBUILD";
|
|
|
|
$text =~ s/^package\(\) \{.*?^\}\n/$package_func/smg or
|
|
|
|
die "Can't replace package function APKBUILD";
|
2017-01-31 08:20:14 +00:00
|
|
|
$text =~ s/^check\(\) \{.*?^\}\n/$check_func/smg or
|
|
|
|
die "Can't replace check function APKBUILD";
|
2011-06-02 08:55:00 +00:00
|
|
|
|
|
|
|
open my $fh, '>', "APKBUILD" or die;
|
|
|
|
print $fh $text;
|
|
|
|
close $fh;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub do_depends {
|
2018-11-25 17:43:37 +00:00
|
|
|
|
2011-06-02 08:55:00 +00:00
|
|
|
my $apkbuild = read_apkbuild;
|
|
|
|
my $metaprefix = "src/" . $apkbuild->{'_pkgreal'} . "-" . $apkbuild->{'pkgver'} . "/";
|
|
|
|
my $meta;
|
|
|
|
|
|
|
|
foreach my $metafile ("MYMETA.json", "META.json", "MYMETA.yml", "META.yml") {
|
|
|
|
if (-e "$metaprefix$metafile") {
|
|
|
|
say "Using meta information from $metafile";
|
|
|
|
$meta = CPAN::Meta->load_file("$metaprefix$metafile");
|
|
|
|
last;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
die "No dependency meta file found" unless $meta;
|
|
|
|
|
|
|
|
my $abstract = $meta->abstract;
|
|
|
|
say "Abstract: $abstract";
|
|
|
|
|
|
|
|
my $license = join " ", map {$license_mappings->{$_} or $_} $meta->license;
|
|
|
|
say "License: $license";
|
|
|
|
|
|
|
|
my $deps = parse_deps $meta->effective_prereqs->requirements_for('runtime', 'requires');
|
|
|
|
say "CPAN deps: $deps";
|
2011-11-04 07:43:00 +00:00
|
|
|
say "Recommend: " . parse_deps $meta->effective_prereqs->requirements_for('runtime', 'recommends');
|
2011-06-02 08:55:00 +00:00
|
|
|
|
2017-01-31 08:20:14 +00:00
|
|
|
my $makedeps = parse_deps($meta->effective_prereqs->requirements_for('build', 'requires'), $meta->effective_prereqs->requirements_for('build', 'recommends'));
|
2011-06-02 08:55:00 +00:00
|
|
|
say "CPAN build deps: $makedeps";
|
2017-01-31 08:20:14 +00:00
|
|
|
say "CPAN requires: " . parse_deps($meta->effective_prereqs->requirements_for('build', 'requires'));
|
|
|
|
say "CPAN recommds: " . parse_deps($meta->effective_prereqs->requirements_for('build', 'recommends'));
|
|
|
|
|
|
|
|
my $checkdeps = parse_deps($meta->effective_prereqs->requirements_for('test', 'requires'), $meta->effective_prereqs->requirements_for('test', 'recommends'));
|
|
|
|
say "CPAN check deps: $makedeps";
|
2011-06-02 08:55:00 +00:00
|
|
|
|
|
|
|
my $text = read_file "APKBUILD";
|
2019-03-22 01:18:47 +00:00
|
|
|
if ($abstract && $abstract ne 'unknown') {
|
2011-06-02 08:55:00 +00:00
|
|
|
$text =~ s/^pkgdesc=\"([^\"]*)\"$/pkgdesc=\"$abstract\"/mg or
|
|
|
|
die "Can't find cpandepends line in APKBUILD";
|
|
|
|
}
|
2011-06-02 11:31:17 +00:00
|
|
|
if (length(`find $metaprefix -name '*.xs'`)) {
|
|
|
|
$text =~ s/^arch=\"([^\"]*)\"$/arch="all"/mg or
|
|
|
|
die "Can't find arch line in APKBUILD";
|
|
|
|
}
|
2011-06-02 10:35:06 +00:00
|
|
|
if ($license ne 'unknown') {
|
|
|
|
$text =~ s/^license=\"([^\"]*)\"$/license=\"$license\"/mg or
|
|
|
|
die "Can't find license line in APKBUILD";
|
|
|
|
}
|
2011-06-02 08:55:00 +00:00
|
|
|
$text =~ s/^cpandepends=\"([^\"]*)\"$/cpandepends=\"$deps\"/mg or
|
|
|
|
die "Can't find cpandepends line in APKBUILD";
|
|
|
|
$text =~ s/^cpanmakedepends=\"([^\"]*)\"$/cpanmakedepends=\"$makedeps\"/mg or
|
|
|
|
die "Can't find cpanmakedepends line in APKBUILD";
|
2017-01-31 08:20:14 +00:00
|
|
|
$text =~ s/^cpancheckdepends=\"([^\"]*)\"$/cpancheckdepends=\"$checkdeps\"/mg or
|
|
|
|
die "Can't find cpancheckdepends line in APKBUILD";
|
2011-06-02 08:55:00 +00:00
|
|
|
|
|
|
|
open my $fh, '>', "APKBUILD" or die;
|
|
|
|
print $fh $text;
|
|
|
|
close $fh;
|
|
|
|
}
|
|
|
|
|
2011-06-28 14:51:07 +00:00
|
|
|
sub get_data {
|
|
|
|
my $apkbuild = read_apkbuild;
|
2017-01-31 08:20:14 +00:00
|
|
|
$apkbuild->{_pkgreal} or die "Not apkbuild-cpan generated APKBUILD";
|
2018-11-25 01:51:08 +00:00
|
|
|
my $response = $ua->get("https://fastapi.metacpan.org/release/$apkbuild->{_pkgreal}");
|
2011-06-28 14:51:07 +00:00
|
|
|
$response->is_success or die $response->status_line;
|
|
|
|
my $distdata = $json->decode($response->decoded_content);
|
|
|
|
$distdata->{error} and die "Error trying to locate $apkbuild->{_pkgreal}: $distdata->{error}\n";
|
|
|
|
|
2018-11-26 03:18:10 +00:00
|
|
|
$response = $ua->get("https://fastapi.metacpan.org/module/$distdata->{main_module}");
|
|
|
|
$response->is_success or die $response->status_line;
|
|
|
|
my $moddata = $json->decode($response->decoded_content);
|
|
|
|
$moddata->{error} and die "Error trying to locate $distdata->{main_module}: $moddata->{error}\n";
|
|
|
|
|
|
|
|
return ($apkbuild, $distdata, $moddata);
|
2011-06-28 14:51:07 +00:00
|
|
|
}
|
|
|
|
|
2011-06-02 08:55:00 +00:00
|
|
|
my $abuild_conf = read_assignments_from_file("/etc/abuild.conf");
|
|
|
|
$packager = $abuild_conf->{PACKAGER} if $abuild_conf->{PACKAGER};
|
|
|
|
|
2017-01-31 08:20:14 +00:00
|
|
|
my $user_abuild_conf = read_assignments_from_file($ENV{"HOME"} . "/.abuild/abuild.conf");
|
|
|
|
$packager = $user_abuild_conf->{PACKAGER} if $user_abuild_conf->{PACKAGER};
|
|
|
|
|
2011-06-02 08:55:00 +00:00
|
|
|
given ( $ARGV[0] ) {
|
|
|
|
when ("create") {
|
|
|
|
my $module = $ARGV[1];
|
|
|
|
my $response;
|
|
|
|
$module or die "Module name is a mandatory argument";
|
|
|
|
|
2018-11-25 01:51:08 +00:00
|
|
|
$response = $ua->get("https://fastapi.metacpan.org/module/$module");
|
2011-06-02 08:55:00 +00:00
|
|
|
$response->is_success or die $response->status_line;
|
|
|
|
my $moddata = $json->decode($response->decoded_content);
|
|
|
|
$moddata->{error} and die "Error trying to locate $module: $moddata->{error}\n";
|
|
|
|
|
2018-11-25 01:51:08 +00:00
|
|
|
$response = $ua->get("https://fastapi.metacpan.org/release/$moddata->{distribution}");
|
2011-06-02 08:55:00 +00:00
|
|
|
$response->is_success or die $response->status_line;
|
|
|
|
my $distdata = $json->decode($response->decoded_content);
|
|
|
|
$distdata->{error} and die "Error trying to locate $module: $distdata->{error}\n";
|
|
|
|
|
2018-11-25 01:51:08 +00:00
|
|
|
my $apkname = map_cpan_to_apk $distdata->{metadata}{name};
|
2011-06-02 08:55:00 +00:00
|
|
|
mkdir $apkname;
|
|
|
|
chdir $apkname;
|
2018-11-25 17:43:37 +00:00
|
|
|
write_apkbuild($distdata, undef, $moddata);
|
2011-06-02 08:55:00 +00:00
|
|
|
prepare_tree;
|
|
|
|
update_functions;
|
|
|
|
do_depends;
|
|
|
|
}
|
|
|
|
when ("recreate") {
|
2018-11-26 03:18:10 +00:00
|
|
|
my ($apkbuild, $distdata, $moddata) = get_data;
|
|
|
|
write_apkbuild($distdata, $apkbuild->{authors}, $moddata);
|
2011-06-02 08:55:00 +00:00
|
|
|
prepare_tree;
|
|
|
|
update_functions;
|
|
|
|
do_depends;
|
|
|
|
}
|
|
|
|
when ("upgrade") {
|
2018-11-26 03:18:10 +00:00
|
|
|
my ($apkbuild, $distdata, $moddata) = get_data;
|
2011-06-02 08:55:00 +00:00
|
|
|
|
2018-11-26 22:02:34 +00:00
|
|
|
my $pkgver = $moddata->{version};
|
2011-06-02 08:55:00 +00:00
|
|
|
if ($pkgver != $apkbuild->{pkgver}) {
|
|
|
|
say "Upgrading CPAN module from $apkbuild->{pkgver} to $pkgver";
|
|
|
|
|
|
|
|
my $text = read_file "APKBUILD";
|
|
|
|
$text =~ s/^pkgver=(.*)$/pkgver=$pkgver/mg or
|
|
|
|
die "Can't find pkgver line in APKBUILD";
|
|
|
|
$text =~ s/^pkgrel=(.*)$/pkgrel=0/mg;
|
|
|
|
open my $fh, '>', "APKBUILD" or die;
|
|
|
|
say $fh $text;
|
|
|
|
close $fh;
|
|
|
|
|
|
|
|
prepare_tree;
|
|
|
|
do_depends;
|
|
|
|
} else {
|
|
|
|
say "Up-to-data with CPAN";
|
|
|
|
}
|
|
|
|
}
|
2011-06-28 14:51:07 +00:00
|
|
|
when ('check') {
|
2018-11-26 03:18:10 +00:00
|
|
|
my ($apkbuild, $distdata, $moddata) = get_data;
|
2018-11-26 22:02:34 +00:00
|
|
|
my $pkgver = $moddata->{version};
|
2011-06-28 15:05:04 +00:00
|
|
|
say "$apkbuild->{pkgname}: Latest version: $pkgver Packaged version: $apkbuild->{pkgver}";
|
|
|
|
if ($pkgver ne $apkbuild->{pkgver}) {
|
|
|
|
exit(1);
|
|
|
|
}
|
2011-06-28 14:51:07 +00:00
|
|
|
}
|
2011-06-02 08:55:00 +00:00
|
|
|
when ("update") {
|
|
|
|
prepare_tree;
|
|
|
|
do_depends;
|
|
|
|
}
|
|
|
|
default {
|
2011-06-28 14:51:07 +00:00
|
|
|
say "Usage: apkbuild-cpan [create <Module::Name> | check | recreate | update | upgrade]";
|
2011-06-02 08:55:00 +00:00
|
|
|
exit;
|
|
|
|
}
|
|
|
|
}
|