Fix ignored `\docversion' update.

This commit is contained in:
Casper Ti. Vector 2019-11-17 17:56:57 +08:00
parent 221ee7c2f5
commit 581a8e1b9a
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@
tabsize = 4, formatcom = {\ifXeTeX\xeCJKVerbAddon\fi}
}
\newcommand*{\docversion}{v1.8.0}
\newcommand*{\docversion}{v1.8.1}
\pkuthssinfo{
cthesisname = {本科生毕业论文}, ethesisname = {Undergraduate Thesis},
ctitle = {北京大学学位论文模版\\pkuthss \docversion},

View File

@ -10,7 +10,7 @@ revbump:
sed -i '/\\Provides/,+1 s;\[[^ ]* [^ ]*;[$(NUMDATE) v$(VERSION);g' \
tex/*
sed -i -e '/date = / s;{[^,]\+},$$;{$(CNDATE)},;g' \
-e '/\\newcommand{\\docversion}/ s;{[^{}]\+}$$;{v$(VERSION)};g' \
-e '/\\newcommand\*{\\docversion}/ s;{[^{}]\+}$$;{v$(VERSION)};g' \
doc/readme/pkuthss.tex
@echo '$@: remember to update the change log and copyright lines'
@echo '$@: remember to tag the commit and push tags'