Skip to content

Commit

Permalink
ctex 1.02d: 简单调整 maketds.bat,增加 CTAN 打包功能。
Browse files Browse the repository at this point in the history
  • Loading branch information
qinglee committed Jun 9, 2014
1 parent 8636eb3 commit bf1fb51
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions script/maketds.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
if exist texmf rmdir /s/q .\texmf
if exist ctex-tds.zip del ctex-tds.zip
if exist ctex rmdir /s/q .\ctex
if exist ctex.tds.zip del ctex.tds.zip
if exist ctex.zip del ctex.zip

mkdir texmf\tex\latex\ctex
for %%i in (..\ctex.sty ..\ctexart.cls ..\ctexbook.cls ..\ctexcap.sty ..\ctexrep.cls) do copy "%%i" texmf\tex\latex\ctex
Expand Down Expand Up @@ -32,4 +34,13 @@ for %%i in (..\doc\ctex.pdf ..\doc\ctex.tex ..\README) do copy "%%i" texmf\doc\l
mkdir texmf\doc\latex\ctex\test
for %%i in (..\test\test-cjk.tex ..\test\test-cjkutf8.tex ..\test\test-xetex.tex ..\test\test-xetexgbk.tex) do copy "%%i" texmf\doc\latex\ctex\test

zip -r ctex-tds.zip texmf\*
pushd texmf
zip -r -ll ctex.tds.zip .
popd

mkdir ctex
move texmf\ctex.tds.zip
xcopy /s texmf\doc\latex\ctex ctex
xcopy /s texmf\tex\latex\ctex ctex

zip -r -ll ctex.zip ctex ctex.tds.zip

0 comments on commit bf1fb51

Please sign in to comment.