diff options
Diffstat (limited to 'project')
| -rwxr-xr-x | project | 12 | 
1 files changed, 7 insertions, 5 deletions
@@ -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          ;;  | 
