Skip to content

Commit

Permalink
If "pv" is available at compile time, hard-code its path
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Apr 13, 2012
1 parent 34a85c5 commit 969a145
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ NEED_PROG(bzip2, bzip2)
AC_PATH_PROG(dot, dot)
AC_PATH_PROG(dblatex, dblatex)
AC_PATH_PROG(gzip, gzip)
AC_PATH_PROG(pv, pv, pv)


# Test that Perl has the open/fork feature (Perl 5.8.0 and beyond).
Expand Down
2 changes: 1 addition & 1 deletion scripts/nix-copy-closure.in
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ while (@ARGV) {
$includeOutputs = 1;
}
elsif ($arg eq "--show-progress") {
$progressViewer = "pv";
$progressViewer = "@pv@";
}
elsif ($arg eq "--dry-run") {
$dryRun = 1;
Expand Down
1 change: 1 addition & 0 deletions substitute.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
-e "s^@sed\@^$(sed)^g" \
-e "s^@tar\@^$(tar)^g" \
-e "s^@gzip\@^$(gzip)^g" \
-e "s^@pv\@^$(pv)^g" \
-e "s^@tr\@^$(tr)^g" \
-e "s^@dot\@^$(dot)^g" \
-e "s^@xmllint\@^$(xmllint)^g" \
Expand Down

0 comments on commit 969a145

Please sign in to comment.