From 247bec8ad37fc90a3c40b982c923ba7dd5e2fbf0 Mon Sep 17 00:00:00 2001 From: Stone-Zeng Date: Wed, 4 Apr 2018 02:03:29 +0800 Subject: [PATCH] step version: 1.0.0 --- scripts/release.sh | 51 +++++++++++++++++++++++++++------------------ source/zhlipsum.dtx | 18 ++++++++-------- 2 files changed, 40 insertions(+), 29 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index 66211a8..10eb480 100644 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -2,29 +2,40 @@ export NAME=zhlipsum +export TEX_PATH=TDS/tex/latex/$NAME +export DOC_PATH=TDS/doc/latex/$NAME +export SRC_PATH=TDS/source/latex/$NAME +export TEMP_PATH=TDS/TEMP + +export DOC_EN_SCRIPT=scripts/get-doc-en.lua +export ZHCONVERT_SCRIPT=scripts/zhconvert.local.sh + # Make TDS zip -mkdir -p TDS/doc/latex/$NAME/example/ -mkdir -p TDS/tex/latex/$NAME/ -mkdir -p TDS/source/latex/$NAME/ -mkdir -p TDS/TEMP/ +mkdir -p $SRC_PATH/ +mkdir -p $TEX_PATH/ +mkdir -p $DOC_PATH/ +mkdir -p $TEMP_PATH/ + +cp source/*.dtx $TEMP_PATH/ +cp source/*.pdf $TEMP_PATH/ -cp source/*.dtx TDS/TEMP/ +# All files should be rw-rw-r-- +chmod 664 $TEMP_PATH/* -cd TDS/TEMP/ +cd $TEMP_PATH/ xetex $NAME.dtx -texlua ../../scripts/get-doc-en.lua $NAME.dtx $NAME-en.tex -source ../../scripts/zhconvert.local.sh +texlua ../../$DOC_EN_SCRIPT $NAME.dtx $NAME-en.tex +source ../../$ZHCONVERT_SCRIPT cd ../.. -mv TDS/TEMP/*.dtx TDS/source/latex/$NAME/ -mv TDS/TEMP/*.ins TDS/source/latex/$NAME/ -mv TDS/TEMP/*.sty TDS/tex/latex/$NAME/ -mv TDS/TEMP/*.def TDS/tex/latex/$NAME/ -mv TDS/TEMP/README.md TDS/doc/latex/$NAME/ -mv TDS/TEMP/$NAME-en.tex TDS/doc/latex/$NAME/ -mv TDS/TEMP/$NAME-example-*.tex TDS/doc/latex/$NAME/example/ -cp source/*.pdf TDS/doc/latex/$NAME/ +mv $TEMP_PATH/*.dtx $SRC_PATH/ +mv $TEMP_PATH/*.ins $SRC_PATH/ +mv $TEMP_PATH/*.sty $TEX_PATH/ +mv $TEMP_PATH/*.def $TEX_PATH/ +mv $TEMP_PATH/*.md $DOC_PATH/ +mv $TEMP_PATH/*.tex $DOC_PATH/ +mv $TEMP_PATH/*.pdf $DOC_PATH/ cd TDS/ rm -r TEMP/ @@ -37,10 +48,10 @@ mv -f TDS/$NAME.tds.zip . mkdir CTAN/ -cp TDS/source/latex/$NAME/*.dtx CTAN/ -cp TDS/doc/latex/$NAME/README.md CTAN/ -cp TDS/doc/latex/$NAME/*.pdf CTAN/ -cp $NAME.tds.zip CTAN/ +cp $SRC_PATH/*.dtx CTAN/ +cp $DOC_PATH/*.md CTAN/ +cp $DOC_PATH/*.pdf CTAN/ +cp $NAME.tds.zip CTAN/ cd CTAN/ zip -r -9 $NAME.zip . diff --git a/source/zhlipsum.dtx b/source/zhlipsum.dtx index 50bfea2..2fa2cbf 100644 --- a/source/zhlipsum.dtx +++ b/source/zhlipsum.dtx @@ -183,7 +183,7 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng . %\NeedsTeXFormat{LaTeX2e} %\RequirePackage{expl3} %<*!(driver|install)> -%\GetIdInfo $Id: zhlipsum.dtx 0.5 2018-01-06 12:00:00Z Xiangdong Zeng $ +%\GetIdInfo $Id: zhlipsum.dtx 1.0.0 2018-04-03 12:00:00Z Xiangdong Zeng $ % {Chinese dummy text} %\ProvidesExplPackage{\ExplFileName} % {Chinese dummy text with UTF-8 encoding (for zhlipsum)} @@ -195,7 +195,7 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng . % {\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription} % %<*driver> -\PassOptionsToPackage{showframe}{geometry} +%\PassOptionsToPackage{showframe}{geometry} %^^A! \PassOptionsToPackage{scheme=plain, linespread=1.1}{ctex} %^^A+ \documentclass{ctxdoc} @@ -301,11 +301,11 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng . % % \title{\textbf{zhlipsum: 中文乱数假文(Lorem ipsum)}} % \author{曾祥东} -% \date{2018/01/06 \quad v0.5^^A +% \date{2018/04/03 \quad v1.0.0^^A % \thanks{\url{https://github.com/Stone-Zeng/zhlipsum}.}} %^^A! \title{\textbf{The \pkg{zhlipsum} Package: Chinese Dummy Text}} %^^A! \author{Xiangdong Zeng} -%^^A! \date{2018/01/06 \quad v0.5% +%^^A! \date{2018/04/03 \quad v1.0.0% %^^A! \thanks{\url{https://github.com/Stone-Zeng/zhlipsum}.}} %^^A! % @@ -385,7 +385,7 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng . %^^A! (i.e.\ ``\emph{Lorem ipsum}'') as \pkg{lipsum}, %^^A! \pkg{kantlipsum}, \pkg{blindtext} etc., but for Chinese %^^A! language. Dummy text will be pretty useful, for example, when -%^^A! testing font or page style. +%^^A! testing fonts or page styles. %^^A! % % \pkg{zhlipsum} 宏包支持 UTF-8、GBK 和 Big5 编码,依赖 \LaTeX3{} 项目 @@ -705,10 +705,10 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng . % \begin{function}{script} % 过时选项。现在相当于 \opt{name}。 % \end{function} -%^^A \begin{function}{script} -%^^A Deprecated option. It's now the same as \opt{name}. -%^^A \end{function} -%^^A +%^^A! \begin{function}{script} +%^^A! Deprecated option. Now it's the same as \opt{name}. +%^^A! \end{function} +%^^A! % % \section{已知问题} %^^A! \section{Known issues}