mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
generate-expr-from-tarballs.pl support multiple versions
svn path=/nixpkgs/trunk/; revision=31183
This commit is contained in:
parent
f6090f6bba
commit
2a2ceace7f
@ -44,11 +44,16 @@ while (<>) {
|
||||
my $tarball = "$_";
|
||||
print "\nDOING TARBALL $tarball\n";
|
||||
|
||||
$tarball =~ /\/((?:(?:[A-Za-z0-9]|(?:-[^0-9])|(?:-[0-9]*[a-z]))+))[^\/]*$/;
|
||||
die unless defined $1;
|
||||
my $pkg = $1;
|
||||
$pkg =~ s/-//g;
|
||||
#next unless $pkg eq "xcbutil";
|
||||
my $pkg;
|
||||
if ($tarball =~ s/:([a-zA-Z0-9_]+)$//) {
|
||||
$pkg = $1;
|
||||
} else {
|
||||
$tarball =~ /\/((?:(?:[A-Za-z0-9]|(?:-[^0-9])|(?:-[0-9]*[a-z]))+))[^\/]*$/;
|
||||
die unless defined $1;
|
||||
$pkg = $1;
|
||||
$pkg =~ s/-//g;
|
||||
#next unless $pkg eq "xcbutil";
|
||||
}
|
||||
|
||||
$tarball =~ /\/([^\/]*)\.tar\.bz2$/;
|
||||
my $pkgName = $1;
|
||||
|
Loading…
Reference in New Issue
Block a user