summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/dtxgen
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-04-23 22:11:26 +0000
committerKarl Berry <karl@freefriends.org>2013-04-23 22:11:26 +0000
commitaf4c417998006bbbad32f9e92c76904b42f8d6f9 (patch)
tree01024cb2148b0c0e05e5fa8907fb7871756354f0 /Master/texmf-dist/scripts/dtxgen
parent537251570d7cfb23531f98becb2521dc89e93e63 (diff)
dtxgen (22apr13)
git-svn-id: svn://tug.org/texlive/trunk@30077 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/dtxgen')
-rwxr-xr-xMaster/texmf-dist/scripts/dtxgen/dtxgen13
1 files changed, 8 insertions, 5 deletions
diff --git a/Master/texmf-dist/scripts/dtxgen/dtxgen b/Master/texmf-dist/scripts/dtxgen/dtxgen
index e6b9c58b1d8..b5fa8a8275c 100755
--- a/Master/texmf-dist/scripts/dtxgen/dtxgen
+++ b/Master/texmf-dist/scripts/dtxgen/dtxgen
@@ -81,7 +81,7 @@ zip & produce a zip file ready for upload to CTAN
LATEX
-VERSION=1.01
+VERSION=1.03
MYNAME=`basename $0`
function help {
@@ -119,8 +119,10 @@ function createfile {
test ${BASH_VERSINFO[0]} -ge 4 ||
die Your bash has version $BASH_VERSION, but it should be at least version 4
-type sed >&/dev/null ||
- die dtxgen needs sed, but sed is not in your PATH
+for i in sed getopt; do
+ type $i >&/dev/null ||
+ die dtxgen needs sed and getopt, but $i is not in your PATH
+done
if ! options=$(getopt -o s:n:m:c:d:hvqI \
-l help,short:,name:,mail:,class:,date:,version,quiet -- "$@"); then exit 1; fi
@@ -208,10 +210,11 @@ $(NAME).pdf: $(NAME).dtx
if [ -f $(NAME).glo ]; then makeindex -q -s gglo.ist -o $(NAME).gls $(NAME).glo; fi
if [ -f $(NAME).idx ]; then makeindex -q -s gind.ist -o $(NAME).ind $(NAME).idx; fi
pdflatex --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
+ pdflatex --recorder --interaction=nonstopmode $(NAME).dtx > /dev/null
clean:
rm -f $(NAME).{aux,fls,glo,gls,hd,idx,ilg,ind,ins,log,out}
distclean: clean
- rm -f $(NAME).{pdf,%ext%} README Makefile
+ rm -f $(NAME).{pdf,%ext%} README
inst: all
mkdir -p $(UTREE)/{tex,source,doc}/latex/$(NAME)
cp $(NAME).dtx $(UTREE)/source/latex/$(NAME)
@@ -439,4 +442,4 @@ Major changes of release %VERSION% relative to 1.00:
- presence of sed executable is tested
README
-# $Id: dtxgen,v 1.6 2013/04/15 21:13:10 wybo Exp $
+# $Id: dtxgen,v 1.8 2013/04/22 15:33:25 wybo Exp $