diff options
author | Karl Berry <karl@freefriends.org> | 2007-08-24 18:27:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-08-24 18:27:18 +0000 |
commit | 1ce48411b17da60024defebe9a60f7ab67be0c77 (patch) | |
tree | badf0a65286c47da24f4e73f8a190c9ace542e1c /Master/texmf-dist/doc/latex/isodoc/inst | |
parent | 7e5d4a6894005a55af8ca409356fff320be6dde3 (diff) |
isodoc update (23aug07)
git-svn-id: svn://tug.org/texlive/trunk@4789 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/isodoc/inst')
-rw-r--r-- | Master/texmf-dist/doc/latex/isodoc/inst | 81 |
1 files changed, 40 insertions, 41 deletions
diff --git a/Master/texmf-dist/doc/latex/isodoc/inst b/Master/texmf-dist/doc/latex/isodoc/inst index b309d4e3104..4867096e1c8 100644 --- a/Master/texmf-dist/doc/latex/isodoc/inst +++ b/Master/texmf-dist/doc/latex/isodoc/inst @@ -3,9 +3,9 @@ # this script creates and installs the isodoc class and its # documentation -# inst : create everything -# inst clean : clean up, except pdf files -# inst cleanall : remove all that can be restored, but keep isodoc.{pdf,cls} +# inst : create everything, install in local tree, make zip for CTAN +# inst clean : remove all that can be restored +# inst zip : make a zip file for CTAN # The script needs: # mk http://www.ctan.org/tex-archive/support/latex_maker @@ -17,21 +17,14 @@ NAME=isodoc LOCAL=/local/texmf/tex/latex # my local tex dir -function clean() { - mk -c $NAME - mk -c letter - mk -c logoletter - mk -c ntgletter - mk -c invoice - mk -c accept - rm -f chopin* texnan* *.png *.jpg *.txt # these are in binaries.m64 -} - -function cleanall() { - clean - mv isodoc.pdf $$ - rm -f *.pdf - mv $$ isodoc.pdf +function clean() { # remove all that can be restored, + # except isodoc.cls and isodoc.pdf + for i in *.tex; do + mk -C $i + done + mk -c isodoc + rm -f chopin* texnan* *.png *.jpg # these are in binaries.m64 + rm -f logo[12].pdf *.txt } # binary files are stored cvs as a mime64-encoded zip file binaries.m64 @@ -41,44 +34,50 @@ function cleanall() { # rm binaries.zip # but don't forget to add the original $Id...$ line on top of the new encoded file -if [ "$1" = 'clean' ]; then +case "$1" in +clean) + clean + rm -f isodoc.cls isodoc.pdf + ;; +zip) + echo make zip clean -elif [ "$1" = 'cleanall' ]; then - cleanall -elif [ "$1" = 'tar' ]; then - cleanall version=`grep ' v[0-9.]\+ isodoc class' isodoc.dtx |sed 's/.* v\([0-9.]\+\) .*/\1/' ` - tarfile=isodoc-$version.tar.gz - tar cvzf $tarfile --exclude=CVS --exclude=$tarfile * -else - if [ ! -e acceptform.jpg ]; then - echo unpack binaries - uudecode binaries.m64 - unzip -q binaries - rm binaries.zip - fi + zipfile=isodoc-$version.zip + zip -Dq $zipfile * + ;; +"") + echo unpack binaries + uudecode binaries.m64 + unzip -q binaries + rm binaries.zip # make verbinput files without $Id-lines + echo make example files for i in `grep -l '$\(Id\): ' *.{tex,sty}`; do grep -v '$\(Id\): ' $i >${i%.???}.txt done echo y |tex $NAME.ins >/dev/null - mk --noview --noprint letter - mk --noview --noprint logoletter + for i in *.tex; do + mk --noview --noprint $i + done vpp --noview --batch='1 ologo1' logoletter.pdf vpp --noview --batch='2 ologo2' logoletter.pdf - mk --noview --noprint ntgletter - mk --noview --noprint invoice - mk --noview --noprint accept + + echo make documentation pdflatex --interaction=batchmode $NAME.dtx > /dev/null makeindex -q -s gglo.ist -o $NAME.gls $NAME.glo makeindex -q -s gind.ist -o $NAME.ind $NAME.idx pdflatex --interaction=batchmode $NAME.dtx > /dev/null + echo install in local tree sudo cp $NAME.{dtx,cls,pdf} $LOCAL # install in local tex tree sudo mktexlsr -fi - -# $Id: inst,v 1.8 2006/11/07 09:36:02 wybo Exp $ - + ;; +*) + echo illegal argument + exit 1 + ;; +esac +# $Id: inst,v 1.10 2007/08/21 22:21:00 wybo Exp $ |