aboutsummaryrefslogtreecommitdiffstats
path: root/cpan2tgz
diff options
context:
space:
mode:
authorJason Woodward2004-11-16 06:31:21 +0000
committerJason Woodward2004-11-16 06:31:21 +0000
commit6189a7a4eed476b1f7d013c757ffc8d3ebde16ce (patch)
tree4720845f052742829158475c08787df9dd9a9c7f /cpan2tgz
parentf0aed5c6e458303013fadcba4720c22df355ca0c (diff)
downloadcpan2tgz-6189a7a4eed476b1f7d013c757ffc8d3ebde16ce.tar.gz
binary packages are now generated with arch from perl -V:archname
Diffstat (limited to 'cpan2tgz')
-rwxr-xr-xcpan2tgz3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpan2tgz b/cpan2tgz
index 8996da9..7c649ac 100755
--- a/cpan2tgz
+++ b/cpan2tgz
@@ -22,6 +22,7 @@
#
use strict;
use warnings;
+use Config;
use CPAN;
use Data::Dumper;
use Getopt::Long;
@@ -54,7 +55,7 @@ sub do_package {
(my $final_pkg_name = $pkg_name) =~ s/\-$final_pkg_version//;
$pkg_name =~ s/\.tar.*?$//;
if( $module->xs_file() ){
- $pkg_name .= "-i386";
+ $pkg_name .= "-" . [split('-',$Config{archname})]->[0];
}else{
$pkg_name .= "-noarch";
}