diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/zhnumber/zhnumber.ins')
-rw-r--r-- | Master/texmf-dist/source/latex/zhnumber/zhnumber.ins | 44 |
1 files changed, 28 insertions, 16 deletions
diff --git a/Master/texmf-dist/source/latex/zhnumber/zhnumber.ins b/Master/texmf-dist/source/latex/zhnumber/zhnumber.ins index 2631a321a1e..1f8a0d2fb3d 100644 --- a/Master/texmf-dist/source/latex/zhnumber/zhnumber.ins +++ b/Master/texmf-dist/source/latex/zhnumber/zhnumber.ins @@ -4,9 +4,9 @@ %% %% The original source files were: %% -%% zhnumber.dtx (with options: `batchfile') +%% zhnumber.dtx (with options: `install') %% -%% Copyright (C) 2012 by Qing Lee <sobenlee@gmail.com> +%% Copyright (C) 2012, 2014 by Qing Lee <sobenlee@gmail.com> %% -------------------------------------------------------------------------- %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -19,12 +19,13 @@ %% This work has the LPPL maintenance status "maintained". %% The Current Maintainer of this work is Qing Lee. %% -\input docstrip.tex + +\input l3docstrip.tex \keepsilent \askforoverwritefalse \preamble - Copyright (C) 2012 by Qing Lee <sobenlee@gmail.com> + Copyright (C) 2012, 2014 by Qing Lee <sobenlee@gmail.com> -------------------------------------------------------------------------- This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 @@ -49,23 +50,34 @@ zhnumber.ins and README. \endpostamble + \ifnum\shellescape=1 \else \errmessage{ Shell escape is disabled. Please use ^^J^^J - xe(la)tex -shell-escape \jobname.ins(dtx)^^J} + xetex -shell-escape \jobname.ins(dtx)^^J} \expandafter\endbatchfile \fi -\usedir{tex/latex/zhnumber} -\generate{\file{\jobname.sty}{\from{\jobname.dtx}{package}}} -\usedir{tex/latex/zhnumber/config} -\generate{ - \file{\jobname-utf8.cfg}{\from{\jobname.dtx}{config,utf8}} - \file{\jobname-big5.cfg}{\from{\jobname.dtx}{config,big5}} - \file{\jobname-gbk.cfg}{\from{\jobname.dtx}{config,gbk}}} -\immediate\write18{iconv -f utf-8 -t big-5 \jobname-big5.cfg > \jobname-big5.temp} -\immediate\write18{iconv -f utf-8 -t gbk \jobname-gbk.cfg > \jobname-gbk.temp} -\immediate\write18{mv -f \jobname-big5.temp \jobname-big5.cfg} -\immediate\write18{mv -f \jobname-gbk.temp \jobname-gbk.cfg} + +\generate + { + \usedir{source/latex/zhnumber} + \file{zhnumber.ins} {\from{\jobname.dtx}{install}} + \usedir{tex/latex/zhnumber} + \file{zhnumber.sty} {\from{\jobname.dtx}{package}} + \usedir{tex/latex/zhnumber/config} + \file{zhnumber-utf8.cfg} {\from{\jobname.dtx}{config,utf8}} + \file{zhnumber-big5.cfg} {\from{\jobname.dtx}{config,big5}} + \file{zhnumber-gbk.cfg} {\from{\jobname.dtx}{config,gbk}} + \nopreamble\nopostamble + \usedir{doc/latex/zhnumber} + \file{README.txt} {\from{\jobname.dtx}{readme}} + } + +\immediate\write18{iconv -f utf-8 -t big-5 zhnumber-big5.cfg > zhnumber-big5.temp} +\immediate\write18{iconv -f utf-8 -t gbk zhnumber-gbk.cfg > zhnumber-gbk.temp} +\immediate\write18{mv -f zhnumber-big5.temp zhnumber-big5.cfg} +\immediate\write18{mv -f zhnumber-gbk.temp zhnumber-gbk.cfg} + \endbatchfile %% %% This package consists of the file zhnumber.dtx, |