* Updated for the new Nix model.

svn path=/nixpkgs/trunk/; revision=98
This commit is contained in:
Eelco Dolstra 2003-06-18 17:17:33 +00:00
parent 8a74e5e56f
commit db92a6b313
2 changed files with 13 additions and 11 deletions

View file

@ -2,11 +2,12 @@
export PATH=/bin:/usr/bin
top=`pwd`
tar xvfz $src
cd aterm-*
./configure --prefix=$top
make
make install
cd ..
rm -rf aterm-*
mkdir $out || exit 1
cd $out || exit 1
tar xvfz $src || exit 1
cd aterm-* || exit 1
./configure --prefix=$out || exit 1
make || exit 1
make install || exit 1
cd $out || exit 1
rm -rf aterm-* || exit 1

View file

@ -3,7 +3,8 @@
use strict;
use Cwd;
my $selfdir = cwd;
my $selfdir = $ENV{"out"};
mkdir "$selfdir", 0755 || die "error creating $selfdir";
# For each activated package, create symlinks.
@ -20,7 +21,7 @@ sub createLinks {
if (-d $srcfile) {
# !!! hack for resolving name clashes
if (!-e $dstfile) {
mkdir $dstfile, 0755 or
mkdir $dstfile, 0755 ||
die "error creating directory $dstfile";
}
-d $dstfile or die "$dstfile is not a directory";
@ -30,7 +31,7 @@ sub createLinks {
die "collission between $srcfile and $target";
} else {
print "linking $dstfile to $srcfile\n";
symlink($srcfile, $dstfile) or
symlink($srcfile, $dstfile) ||
die "error creating link $dstfile";
}
}