summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/isodoc/inst
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-06-17 22:13:40 +0000
committerKarl Berry <karl@freefriends.org>2009-06-17 22:13:40 +0000
commitae170436e4655941a176b859d567521787942834 (patch)
treec06b1743642308fab402bf0e20edfc0f34576b53 /Master/texmf-dist/doc/latex/isodoc/inst
parent1feaf67647ac921f151beaa742428007dd95f6f4 (diff)
isodoc 0.6 (17jun09)
git-svn-id: svn://tug.org/texlive/trunk@13787 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/isodoc/inst')
-rw-r--r--Master/texmf-dist/doc/latex/isodoc/inst56
1 files changed, 38 insertions, 18 deletions
diff --git a/Master/texmf-dist/doc/latex/isodoc/inst b/Master/texmf-dist/doc/latex/isodoc/inst
index 4867096e1c8..dc236fa2eda 100644
--- a/Master/texmf-dist/doc/latex/isodoc/inst
+++ b/Master/texmf-dist/doc/latex/isodoc/inst
@@ -1,21 +1,16 @@
-#!/bin/sh
+#!/bin/bash
# this script creates and installs the isodoc class and its
# documentation
-# 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
+# ./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
-# vpp http://www.ctan.org/tex-archive/support/view_print_ps_pdf/
-# unzip unzip-5.52-14.rpm
-# uudecode sharutils-4.6-13.rpm
-
-
-NAME=isodoc
-LOCAL=/local/texmf/tex/latex # my local tex dir
+function die {
+ echo "$@"
+ exit 1
+}
function clean() { # remove all that can be restored,
# except isodoc.cls and isodoc.pdf
@@ -23,10 +18,31 @@ function clean() { # remove all that can be restored,
mk -C $i
done
mk -c isodoc
- rm -f chopin* texnan* *.png *.jpg # these are in binaries.m64
+ rm -f chopin* texnan* *.png *.jpg *.pfb # these are in binaries.m64
rm -f logo[12].pdf *.txt
}
+# The script needs:
+# mk http://www.ctan.org/tex-archive/support/latex_maker
+# vpp http://www.ctan.org/tex-archive/support/view_print_ps_pdf/
+# unzip unzip-5.52-14.rpm
+# uudecode sharutils-4.6-13.rpm
+
+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
+ln -sf ../isodoc.dtx
+ln -sf ../isodoc.ins
+
+
# binary files are stored cvs as a mime64-encoded zip file binaries.m64
# pack binaries, if necessary, with:
# zip -m binaries chopin* texnan* *.jpg *.png
@@ -37,14 +53,18 @@ function clean() { # remove all that can be restored,
case "$1" in
clean)
clean
- rm -f isodoc.cls isodoc.pdf
+ rm -f isodoc.{cls,pdf,ins,dtx}
;;
zip)
echo make zip
+ mv isodoc.cls isodoc.pdf ..
clean
+ rm isodoc.dtx isodoc.ins
+ cd ..
version=`grep ' v[0-9.]\+ isodoc class' isodoc.dtx |sed 's/.* v\([0-9.]\+\) .*/\1/' `
zipfile=isodoc-$version.zip
- zip -Dq $zipfile *
+ zip -Drq $zipfile * -x CVS/*
+ rm isodoc.cls isodoc.pdf
;;
"")
echo unpack binaries
@@ -73,11 +93,11 @@ zip)
echo install in local tree
sudo cp $NAME.{dtx,cls,pdf} $LOCAL # install in local tex tree
- sudo mktexlsr
+ sudo -i mktexlsr
;;
*)
echo illegal argument
exit 1
;;
esac
-# $Id: inst,v 1.10 2007/08/21 22:21:00 wybo Exp $
+# $Id: inst,v 1.13 2009-06-15 13:21:28 wybo Exp $