Skip to content

Commit

Permalink
Makefile: Use texcount (sjtug#312)
Browse files Browse the repository at this point in the history
Signed-off-by: Ce Gao <[email protected]>
  • Loading branch information
gaocegege authored May 12, 2018
1 parent f6bf0f1 commit b68c613
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3,813 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ view : $(THESIS).pdf
open $<

wordcount:
@perl texcount.pl $(THESIS).tex -inc | awk '/total/ {getline; print "词数  :",$$4}'
@perl texcount.pl $(THESIS).tex -inc -char | awk '/total/ {getline; print "字符数 :",$$4}'
@perl texcount.pl $(THESIS).tex -inc -ch-only | awk '/total/ {getline; print "中文字数:",$$4}'
@texcount $(THESIS).tex -inc | awk '/total/ {getline; print "词数  :",$$4}'
@texcount $(THESIS).tex -inc -char | awk '/total/ {getline; print "字符数 :",$$4}'
@texcount $(THESIS).tex -inc -ch-only | awk '/total/ {getline; print "中文字数:",$$4}'

clean :
-@latexmk -c -silent 2> /dev/null
Expand All @@ -43,7 +43,7 @@ s3 : $(THESIS).pdf

git :
git push --tags github; git push github;
git push --tags gitlab; git push gitlab;
git push --tags gitlab; git push gitlab;

zip :
git archive --format zip --output thesis.zip master
Loading

0 comments on commit b68c613

Please sign in to comment.