Compare commits
3 commits
master
...
0.6-mainte
Author | SHA1 | Date | |
---|---|---|---|
0d157eed99 | |||
2bd9f0d76b | |||
4570e6d245 |
|
@ -1,4 +1,4 @@
|
||||||
AC_INIT(nix, "0.6")
|
AC_INIT(nix, "0.6.1")
|
||||||
AC_CONFIG_SRCDIR(README)
|
AC_CONFIG_SRCDIR(README)
|
||||||
AC_CONFIG_AUX_DIR(config)
|
AC_CONFIG_AUX_DIR(config)
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
|
|
|
@ -17,6 +17,7 @@ sub processURL {
|
||||||
open MANIFEST, "<$manifest";
|
open MANIFEST, "<$manifest";
|
||||||
|
|
||||||
my $inside = 0;
|
my $inside = 0;
|
||||||
|
my $type;
|
||||||
|
|
||||||
my $storePath;
|
my $storePath;
|
||||||
my $narurl;
|
my $narurl;
|
||||||
|
@ -29,23 +30,27 @@ sub processURL {
|
||||||
next if (/^$/);
|
next if (/^$/);
|
||||||
|
|
||||||
if (!$inside) {
|
if (!$inside) {
|
||||||
if (/^\{$/) {
|
if (/^\s*(\w*)\s*\{$/) {
|
||||||
$inside = 1;
|
$inside = 1;
|
||||||
|
$type = $1;
|
||||||
|
$type = "narfile" if $type eq "";
|
||||||
undef $storePath;
|
undef $storePath;
|
||||||
undef $narurl;
|
undef $narurl;
|
||||||
undef $hash;
|
undef $hash;
|
||||||
@preds = ();
|
@preds = ();
|
||||||
}
|
}
|
||||||
else { die "bad line: $_"; }
|
|
||||||
} else {
|
} else {
|
||||||
if (/^\}$/) {
|
if (/^\}$/) {
|
||||||
$inside = 0;
|
$inside = 0;
|
||||||
|
|
||||||
$$storePaths2urls{$storePath} = $narurl;
|
if ($type eq "narfile") {
|
||||||
$$urls2hashes{$narurl} = $hash;
|
|
||||||
|
|
||||||
foreach my $p (@preds) {
|
$$storePaths2urls{$storePath} = $narurl;
|
||||||
$$successors{$p} = $storePath;
|
$$urls2hashes{$narurl} = $hash;
|
||||||
|
|
||||||
|
foreach my $p (@preds) {
|
||||||
|
$$successors{$p} = $storePath;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -61,7 +66,7 @@ sub processURL {
|
||||||
elsif (/^\s*SuccOf:\s*(\/\S+)\s*$/) {
|
elsif (/^\s*SuccOf:\s*(\/\S+)\s*$/) {
|
||||||
push @preds, $1;
|
push @preds, $1;
|
||||||
}
|
}
|
||||||
else { die "bad line: $_"; }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,8 @@ lexer-tab.c lexer-tab.h: lexer.l
|
||||||
|
|
||||||
# ATerm helper function generation.
|
# ATerm helper function generation.
|
||||||
|
|
||||||
|
nixexpr.cc eval.cc parser.cc primops.cc: nixexpr-ast.hh
|
||||||
|
|
||||||
nixexpr-ast.cc nixexpr-ast.hh: ../aterm-helper.pl nixexpr-ast.def
|
nixexpr-ast.cc nixexpr-ast.hh: ../aterm-helper.pl nixexpr-ast.def
|
||||||
$(perl) ../aterm-helper.pl nixexpr-ast.hh nixexpr-ast.cc < nixexpr-ast.def
|
$(perl) ../aterm-helper.pl nixexpr-ast.hh nixexpr-ast.cc < nixexpr-ast.def
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue