From c4c84d1edb4e0dd4ed77a9b2d1386834cdfaaa34 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 9 Dec 2009 18:08:28 +0000 Subject: [PATCH] * nix-build: be less verbose. --- scripts/nix-build.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/nix-build.in b/scripts/nix-build.in index 1134eb427..d27eb08e2 100644 --- a/scripts/nix-build.in +++ b/scripts/nix-build.in @@ -12,6 +12,7 @@ my $outLink; my $drvLink; my $dryRun = 0; +my $verbose = 0; my @instArgs = (); my @buildArgs = (); @@ -116,6 +117,12 @@ EOF push @instArgs, $arg; } + elsif ($arg eq "--verbose" or substr($arg, 0, 2) eq "-v") { + push @buildArgs, $arg; + push @instArgs, $arg; + $verbose = 1; + } + elsif (substr($arg, 0, 1) eq "-") { push @buildArgs, $arg; } @@ -153,7 +160,7 @@ foreach my $expr (@exprs) { foreach my $drvPath (@drvPaths) { my $target = readlink $drvPath or die "cannot read symlink `$drvPath'"; - print STDERR "store derivation is $target\n"; + print STDERR "derivation is $target\n" if $verbose; } # Build.