aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
Diffstat (limited to 'project')
-rwxr-xr-xproject12
1 files changed, 7 insertions, 5 deletions
diff --git a/project b/project
index 311c051..93c55e7 100755
--- a/project
+++ b/project
@@ -503,11 +503,13 @@ case $operation in
# example when running './project make clean' there isn't any
# 'paper.pdf').
if [ -f paper.pdf ]; then
- if type pdftotext > /dev/null 2>/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
+ if type pdftotext > /dev/null 2>/dev/null; then
+ numwords=$(pdftotext paper.pdf && cat paper.txt | wc -w)
+ numeff=$(echo $numwords | awk '{print $1-850}')
+ echo; echo "Number of words in full PDF: $numwords"
+ echo "No abstract, and figure captions: $numeff"
+ rm paper.txt
+ fi
fi
;;