aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
Diffstat (limited to 'project')
-rwxr-xr-xproject7
1 files changed, 7 insertions, 0 deletions
diff --git a/project b/project
index 6877b5a..f488fa7 100755
--- a/project
+++ b/project
@@ -409,6 +409,13 @@ EOF
# Run the actual project.
controlled_env reproduce/analysis/make/top-make.mk
+
+ # Print the number of words (if the user has pdftotext.
+ if which pdftotext &> /dev/null; then
+ numwords=$(pdftotext paper.pdf && cat paper.txt | wc -w)
+ echo; echo "Number of words in full PDF: $numwords"
+ rm paper.txt
+ fi
;;