Complete commit c271374d.
This commit is contained in:
parent
c79e150a09
commit
3aa80f6a2d
5
Makefile
5
Makefile
@ -1,4 +1,4 @@
|
|||||||
# Copyright (c) 2011-2014 Casper Ti. Vector
|
# Copyright (c) 2011-2014,2019 Casper Ti. Vector
|
||||||
# Public domain.
|
# Public domain.
|
||||||
|
|
||||||
TITLE = pkuthss
|
TITLE = pkuthss
|
||||||
@ -11,9 +11,6 @@ default: dist
|
|||||||
qa:
|
qa:
|
||||||
utils/qa
|
utils/qa
|
||||||
|
|
||||||
toutf8 togbk:
|
|
||||||
utils/enc $@
|
|
||||||
|
|
||||||
bump:
|
bump:
|
||||||
utils/bump VERSION=$(VERSION)
|
utils/bump VERSION=$(VERSION)
|
||||||
|
|
||||||
|
|||||||
22
utils/enc
22
utils/enc
@ -1,22 +0,0 @@
|
|||||||
#!/usr/bin/make -f
|
|
||||||
#
|
|
||||||
# Copyright (c) 2011-2014 Casper Ti. Vector
|
|
||||||
# Public domain.
|
|
||||||
|
|
||||||
FIND_GBKCRLF = -name '*.bat*'
|
|
||||||
TOUTF8 = enca -L zh -x UTF-8
|
|
||||||
TOGBK = enca -L zh -x GBK
|
|
||||||
|
|
||||||
toutf8:
|
|
||||||
find doc/example -not $(FIND_GBKCRLF) -type f -exec $(TOUTF8) '{}' '+'
|
|
||||||
sed -i -e '/\\documentclass/ s/GBK/UTF8/' \
|
|
||||||
-e '/^\\usepackage.*{biblatex}$$/ s/gbk/utf8/' \
|
|
||||||
doc/example/thesis.tex
|
|
||||||
|
|
||||||
togbk:
|
|
||||||
find doc/example -not $(FIND_GBKCRLF) -type f -exec $(TOGBK) '{}' '+'
|
|
||||||
sed -i -e '/\\documentclass/ s/UTF8/GBK/' \
|
|
||||||
-e '/^\\usepackage.*{biblatex}$$/ s/utf8/gbk/' \
|
|
||||||
doc/example/thesis.tex
|
|
||||||
|
|
||||||
# vim:ts=4:sw=4
|
|
||||||
Loading…
Reference in New Issue
Block a user