If "pv" is available at compile time, hard-code its path

This commit is contained in:
Eelco Dolstra 2012-04-13 14:41:33 +02:00
parent 34a85c5405
commit 969a14599d
3 changed files with 3 additions and 1 deletions

View file

@ -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).

View file

@ -63,7 +63,7 @@ while (@ARGV) {
$includeOutputs = 1;
}
elsif ($arg eq "--show-progress") {
$progressViewer = "pv";
$progressViewer = "@pv@";
}
elsif ($arg eq "--dry-run") {
$dryRun = 1;

View file

@ -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" \