forked from mirrors/nixpkgs
* Create the union of all directories, not just ["bin", "lib", ...].
svn path=/nixpkgs/trunk/; revision=77
This commit is contained in:
parent
93c7c89b1a
commit
8a74e5e56f
|
@ -5,14 +5,6 @@ use Cwd;
|
|||
|
||||
my $selfdir = cwd;
|
||||
|
||||
my @dirs = ("bin", "sbin", "lib", "include", "man");
|
||||
|
||||
# Create the subdirectories.
|
||||
mkdir $selfdir, 0755;
|
||||
foreach my $dir (@dirs) {
|
||||
mkdir "$selfdir/$dir", 0755;
|
||||
}
|
||||
|
||||
# For each activated package, create symlinks.
|
||||
|
||||
sub createLinks {
|
||||
|
@ -52,7 +44,5 @@ foreach my $name (keys %ENV) {
|
|||
|
||||
print "merging $pkgdir\n";
|
||||
|
||||
foreach my $dir (@dirs) {
|
||||
createLinks("$pkgdir/$dir", "$selfdir/$dir");
|
||||
}
|
||||
createLinks("$pkgdir", "$selfdir");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue