commit 68f7bb4c067df65ea407dbae0bd1313a1f79717f (tree)
parent 70e3cbcdb6141b923478485aa40fadab3c4f38cc
Author: Motiejus Jakštys <motiejus@uber.com>
Date: Sat, 24 Apr 2021 23:51:51 +0300
word count
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/IV/Makefile b/IV/Makefile
@@ -204,6 +204,13 @@ clean-tables: ## Remove tables created during unit or rivers tests
help: ## Print this help message
@awk -F':.*?## ' '/^[a-z0-9.-]*: *.*## */{printf "%-18s %s\n",$$1,$$2}' $(MAKEFILE_LIST)
+.PHONY: wc
+wc: mj-msc.pdf ## Character and page count
+ @pdftotext $< - | \
+ awk '/\yReferences\y/{exit}; {print}' | \
+ tr -d '[:space:]' | wc -c | \
+ awk '{printf("Chars: %d, pages: %.1f\n", $$1, $$1/1500)}'
+
$(OSM):
wget http://download.geofabrik.de/europe/$@