Skip to content

Commit

Permalink
step version: 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stone-zeng committed Apr 3, 2018
1 parent c01aa6a commit 247bec8
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 29 deletions.
51 changes: 31 additions & 20 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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 .
Expand Down
18 changes: 9 additions & 9 deletions source/zhlipsum.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng <xdzeng96@gmail.com>.
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\RequirePackage{expl3}
%<*!(driver|install)>
%<!readme>\GetIdInfo $Id: zhlipsum.dtx 0.5 2018-01-06 12:00:00Z Xiangdong Zeng <xdzeng96@gmail.com> $
%<!readme>\GetIdInfo $Id: zhlipsum.dtx 1.0.0 2018-04-03 12:00:00Z Xiangdong Zeng <xdzeng96@gmail.com> $
%<package> {Chinese dummy text}
%<package>\ProvidesExplPackage{\ExplFileName}
%<utf8> {Chinese dummy text with UTF-8 encoding (for zhlipsum)}
Expand All @@ -195,7 +195,7 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng <xdzeng96@gmail.com>.
%<!readme> {\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription}
%</!(driver|install)>
%<*driver>
\PassOptionsToPackage{showframe}{geometry}
%\PassOptionsToPackage{showframe}{geometry}
%^^A! \PassOptionsToPackage{scheme=plain, linespread=1.1}{ctex}
%^^A+
\documentclass{ctxdoc}
Expand Down Expand Up @@ -301,11 +301,11 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng <xdzeng96@gmail.com>.
%
% \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!
%
Expand Down Expand Up @@ -385,7 +385,7 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng <xdzeng96@gmail.com>.
%^^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{} 项目
Expand Down Expand Up @@ -705,10 +705,10 @@ Copyright (C) 2017, 2018 by Xiangdong Zeng <xdzeng96@gmail.com>.
% \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}
Expand Down

0 comments on commit 247bec8

Please sign in to comment.