From 8c1905ce5be6b39d794ab588f6de73c23971354b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 16 Aug 2005 21:53:46 +0000 Subject: [PATCH] * Print the page count. svn path=/nixpkgs/trunk/; revision=3592 --- pkgs/misc/tex/nix/run-latex.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/misc/tex/nix/run-latex.sh b/pkgs/misc/tex/nix/run-latex.sh index aa95b432fc1d..103d0771f389 100644 --- a/pkgs/misc/tex/nix/run-latex.sh +++ b/pkgs/misc/tex/nix/run-latex.sh @@ -83,4 +83,6 @@ echo "STATS:" printf "%5d overfull/underfull h/vboxes\n" $(cat $tmpFile | egrep -c "Overfull|Underfull" || true) printf "%5d undefined references\n" $(cat $tmpFile | grep -c "Reference.*undefined" || true) printf "%5d undefined citations\n" $(cat $tmpFile | grep -c "Citation.*undefined" || true) +printf "%5d pages\n" \ + $(cat $tmpFile | grep "Output written.*(.*pages" | sed "s/.*(\([0-9]*\) pages.*/\1/" || true) echo