* Updated for the new Nix model.
svn path=/nixpkgs/trunk/; revision=98
This commit is contained in:
parent
8a74e5e56f
commit
db92a6b313
|
@ -2,11 +2,12 @@
|
||||||
|
|
||||||
export PATH=/bin:/usr/bin
|
export PATH=/bin:/usr/bin
|
||||||
|
|
||||||
top=`pwd`
|
mkdir $out || exit 1
|
||||||
tar xvfz $src
|
cd $out || exit 1
|
||||||
cd aterm-*
|
tar xvfz $src || exit 1
|
||||||
./configure --prefix=$top
|
cd aterm-* || exit 1
|
||||||
make
|
./configure --prefix=$out || exit 1
|
||||||
make install
|
make || exit 1
|
||||||
cd ..
|
make install || exit 1
|
||||||
rm -rf aterm-*
|
cd $out || exit 1
|
||||||
|
rm -rf aterm-* || exit 1
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
use strict;
|
use strict;
|
||||||
use Cwd;
|
use Cwd;
|
||||||
|
|
||||||
my $selfdir = cwd;
|
my $selfdir = $ENV{"out"};
|
||||||
|
mkdir "$selfdir", 0755 || die "error creating $selfdir";
|
||||||
|
|
||||||
# For each activated package, create symlinks.
|
# For each activated package, create symlinks.
|
||||||
|
|
||||||
|
@ -20,7 +21,7 @@ sub createLinks {
|
||||||
if (-d $srcfile) {
|
if (-d $srcfile) {
|
||||||
# !!! hack for resolving name clashes
|
# !!! hack for resolving name clashes
|
||||||
if (!-e $dstfile) {
|
if (!-e $dstfile) {
|
||||||
mkdir $dstfile, 0755 or
|
mkdir $dstfile, 0755 ||
|
||||||
die "error creating directory $dstfile";
|
die "error creating directory $dstfile";
|
||||||
}
|
}
|
||||||
-d $dstfile or die "$dstfile is not a directory";
|
-d $dstfile or die "$dstfile is not a directory";
|
||||||
|
@ -30,7 +31,7 @@ sub createLinks {
|
||||||
die "collission between $srcfile and $target";
|
die "collission between $srcfile and $target";
|
||||||
} else {
|
} else {
|
||||||
print "linking $dstfile to $srcfile\n";
|
print "linking $dstfile to $srcfile\n";
|
||||||
symlink($srcfile, $dstfile) or
|
symlink($srcfile, $dstfile) ||
|
||||||
die "error creating link $dstfile";
|
die "error creating link $dstfile";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue