diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/isodoc/inst')
-rw-r--r-- | Master/texmf-dist/doc/latex/isodoc/inst | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/latex/isodoc/inst b/Master/texmf-dist/doc/latex/isodoc/inst index 74e7566223f..59611d549d0 100644 --- a/Master/texmf-dist/doc/latex/isodoc/inst +++ b/Master/texmf-dist/doc/latex/isodoc/inst @@ -1,7 +1,8 @@ #!/bin/bash -# this script creates and installs the isodoc class and its -# documentation +NAME=isodoc +# this script creates and installs the NAME class and its +# documentation, and can make a zip for CTAN uploads # ./inst : create everything, install in local tree, make zip for CTAN # ./inst clean : remove all that can be restored @@ -13,13 +14,14 @@ function die { } function clean() { # remove all that can be restored, - # except isodoc.cls and isodoc.pdf + # except NAME.cls and NAME.pdf for i in *.tex; do mk -C $i done - mk -c isodoc + mk -c $NAME rm -f chopin* *.png *.jpg # these are in binaries.m64 rm -f logo[12].pdf *.txt + rm -f isodocsymbols.sty } # The script needs: @@ -32,15 +34,15 @@ for i in mk vpp unzip uudecode; do type $i &> /dev/null || die executable $i not found done -NAME=isodoc LOCAL=`kpsewhich --expand-var '$TEXMFLOCAL'` # local tex dir if [ "$LOCAL" = "" ]; then echo 'Could not find value for $TEXMFLOCAL' exit 1 fi -LOCAL=${LOCAL}tex/latex/isodoc -ln -sf ../isodoc.dtx -ln -sf ../isodoc.ins +LOCAL=${LOCAL}tex/latex/$NAME +ln -sf ../$NAME.dtx +ln -sf ../$NAME.ins +ln -sf ../isodocsymbols.sty # binary files are stored cvs as a mime64-encoded zip file binaries.m64 @@ -53,18 +55,18 @@ ln -sf ../isodoc.ins case "$1" in clean) clean - rm -f isodoc.{cls,pdf,ins,dtx} + rm -f $NAME.{cls,pdf,ins,dtx} isodocsymbols.sty ;; zip) echo make zip - mv isodoc.cls isodoc.pdf .. + mv $NAME.cls $NAME.pdf .. clean - rm isodoc.dtx isodoc.ins + rm $NAME.dtx $NAME.ins cd .. - version=`grep ' v[0-9.]\+ isodoc class' isodoc.dtx |sed 's/.* v\([0-9.]\+\) .*/\1/' ` - zipfile=isodoc-$version.zip + version=`grep " v[0-9.]\+ $NAME class" $NAME.dtx |sed 's/.* v\([0-9.]\+\) .*/\1/' ` + zipfile=$NAME-$version.zip zip -Drq $zipfile * -x CVS/* - rm isodoc.cls isodoc.pdf + rm $NAME.cls $NAME.pdf ;; "") echo unpack binaries @@ -91,12 +93,12 @@ zip) test -f $NAME.glo && makeindex -q -s gglo.ist -o $NAME.gls $NAME.glo test -f $NAME.idx && makeindex -q -s gind.ist -o $NAME.ind $NAME.idx pdflatex --interaction=batchmode $NAME.dtx > /dev/null - texlog_extract isodoc + texlog_extract $NAME echo install in local tree rm -rf $LOCAL mkdir -p $LOCAL - cp $NAME.{dtx,cls,pdf} $LOCAL # install in local tex tree + cp $NAME.{dtx,cls,pdf} isodocsymbols.sty $LOCAL # install in local tex tree mktexlsr $LOCAL ;; *) @@ -104,4 +106,4 @@ zip) exit 1 ;; esac -# $Id: inst,v 1.17 2010-08-21 15:26:13 wybo Exp $ +# $Id: inst,v 1.20 2012/02/19 20:18:18 wybo Exp $ |