[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
texinfo update (Tue Jun 27 12:52:01 EDT 2006)
From: |
Karl Berry |
Subject: |
texinfo update (Tue Jun 27 12:52:01 EDT 2006) |
Date: |
Tue, 27 Jun 2006 12:52:03 -0400 |
Index: ChangeLog
===================================================================
RCS file: /sources/texinfo/texinfo/ChangeLog,v
retrieving revision 1.617
retrieving revision 1.618
diff -u -r1.617 -r1.618
--- ChangeLog 26 Jun 2006 09:29:41 -0000 1.617
+++ ChangeLog 27 Jun 2006 16:23:18 -0000 1.618
@@ -1,3 +1,18 @@
+2006-06-27 Akim Demaille <address@hidden>
+
+ Fix the clean invocations to hevea.
+ Note that this breaks document using images (to be fixed).
+ * util/latex2html.test (run_hevea_check): Extend to support
+ various build modes.
+ Test them.
+ Force the creation of aux files (something the previous test
+ failed to do...).
+ * util/defs.in (title): New.
+ * util/texi2dvi: Fix incorrect "error" invocations.
+ (run_hevea): Don't pass -o to hevea.
+ Move the result to the expected destination.
+ Don't pass -noiso.
+
2006-06-26 Akim Demaille <address@hidden>
* util/texi2dvi (generated_files_get): Call uniq.
Index: doc/texi2dvi.1
===================================================================
RCS file: /sources/texinfo/texinfo/doc/texi2dvi.1,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -r1.55 -r1.56
--- doc/texi2dvi.1 26 Jun 2006 09:29:41 -0000 1.55
+++ doc/texi2dvi.1 27 Jun 2006 16:23:19 -0000 1.56
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36.
-.TH TEXI2DVI "1" "June 2006" "texi2dvi 1.85" "User Commands"
+.TH TEXI2DVI "1" "June 2006" "texi2dvi 1.86" "User Commands"
.SH NAME
texi2dvi \- convert Texinfo documents to DVI
.SH SYNOPSIS
Index: util/defs.in
===================================================================
RCS file: /sources/texinfo/texinfo/util/defs.in,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- util/defs.in 19 Jun 2006 09:35:01 -0000 1.5
+++ util/defs.in 27 Jun 2006 16:23:19 -0000 1.6
@@ -289,6 +289,20 @@
rm -rf "$@"
}
+
+# title TITLE...
+# --------------
+# Make a huge title to ease the reading of the output.
+title ()
+{
+ (
+ set +x
+ echo " $@ " | sed -e 's/./=/g'
+ echo " $@ "
+ echo " $@ " | sed -e 's/./=/g'
+ )
+}
+
# Turn on shell traces when VERBOSE is set.
if test -n "$VERBOSE"; then
set -x
Index: util/latex2html.test
===================================================================
RCS file: /sources/texinfo/texinfo/util/latex2html.test,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- util/latex2html.test 30 May 2006 14:44:04 -0000 1.1
+++ util/latex2html.test 27 Jun 2006 16:23:19 -0000 1.2
@@ -24,20 +24,41 @@
set -e
-create_input_tex </dev/null
+# For the creation of auxiliary files.
+create_input_tex <<EOF
+\tableofcontents
+\section{First}
+\section{Second}
+EOF
-# run_hevea_check HTML|INFO|TEXT
+# run_hevea_check FORMAT OPTIONS
+# ------------------------------
run_hevea_check ()
{
- out=$1
+ title "$@"
+
+ format="$1"
+ shift
+
# Testing the local build mode.
- TEXI2DVI_pass --$out --batch input.tex
- # There should only be the DVI and the TEXI file.
- assert_files input.$out input.tex
- rm input.$out
+ TEXI2DVI_pass --batch --$format "$@" input.tex
+
+ case $format:$@ in
+ *clean* ) auxfiles='';;
+ *tidy* ) auxfiles='input.t2d';;
+ html:*|text:* ) auxfiles='input.haux input.htoc';;
+ dvi:* ) auxfiles='input.aux input.log input.toc';;
+ * ) auxfiles='';;
+ esac
+ # There should only be the expected output and the source file.
+ assert_files $auxfiles input.$out input.tex
+ rm -fr $auxfiles input.$out
}
-for out in html info text
+for opt in "" "--clean" "--tidy"
do
- run_hevea_check $out
+ for out in html info text
+ do
+ run_hevea_check $out $opt
+ done
done
Index: util/texi2dvi
===================================================================
RCS file: /sources/texinfo/texinfo/util/texi2dvi,v
retrieving revision 1.86
retrieving revision 1.88
diff -u -r1.86 -r1.88
--- util/texi2dvi 26 Jun 2006 09:29:41 -0000 1.86
+++ util/texi2dvi 27 Jun 2006 16:29:54 -0000 1.88
@@ -1,6 +1,6 @@
#! /bin/sh
# texi2dvi --- produce DVI (or PDF) files from Texinfo (or (La)TeX) sources.
-# $Id: texi2dvi,v 1.86 2006/06/26 09:29:41 akim Exp $
+# $Id: texi2dvi,v 1.88 2006/06/27 16:29:54 akim Exp $
#
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001,
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
@@ -35,7 +35,7 @@
set -e
# This string is expanded by rcs automatically when this file is checked out.
-rcs_revision='$Revision: 1.86 $'
+rcs_revision='$Revision: 1.88 $'
rcs_version=`set - $rcs_revision; echo $2`
program=`echo $0 | sed -e 's!.*/!!'`
version="texi2dvi (GNU Texinfo 4.8) $rcs_version
@@ -424,7 +424,7 @@
dvi | ps | dvipdf ) echo dvi;;
pdf ) echo $out_lang;;
html | info | text ) echo $out_lang;;
- *) error "$0: invalid out_lang: $1";;
+ *) error 1 "$0: invalid out_lang: $1";;
esac
}
@@ -437,7 +437,7 @@
case $out_lang in
dvipdf ) echo pdf;;
dvi | html | info | pdf | ps | text ) echo $out_lang;;
- *) error "$0: invalid out_lang: $1";;
+ *) error 1 "$0: invalid out_lang: $1";;
esac
}
@@ -1150,7 +1150,15 @@
# run_hevea (MODE)
# ----------------
-# Convert to HTML.
+# Convert to HTML/INFO/TEXT.
+#
+# Don't pass `-noiso' to hevea: it's useless in HTML since anyway the
+# charset is set to latin1, and troublesome in other modes since
+# accented characters loose their accents.
+#
+# Don't pass `-o DEST' to hevea because in that case it leaves all its
+# auxiliary files there too... Too bad, because it means we will need
+# to handle images some day.
run_hevea ()
{
local hevea=${HEVEA:-hevea}
@@ -1159,19 +1167,19 @@
case $1 in
html) ;;
text|info) run_hevea="$run_hevea -$1";;
- *) error "run_hevea: invalid argument: $1";;
+ *) error 1 "run_hevea: invalid argument: $1";;
esac
# Compiling to the tmp directory enables to preserve a previous
- # successful compilation. Unfortunately it makes it hard to move
- # the image back to the destination directory. So compile to the
- # actual destination.
- run_hevea="$run_hevea -fix -noiso -O -o '$out_name'"
+ # successful compilation.
+ run_hevea="$run_hevea -fix -O -o '$out_base'"
run_hevea="$run_hevea `list_prefix includes -I` -I '$orig_pwd' "
run_hevea="$run_hevea '$in_input'"
verbose "running $run_hevea"
- if eval "$run_hevea" >&5; then :; else
+ if eval "$run_hevea" >&5; then
+ move_to_dest "$out_base"
+ else
error 1 "$hevea exited with bad status, quitting."
fi
}
@@ -1194,7 +1202,7 @@
latex:html|latex:text|latex:info)
run_hevea $out_lang;;
*)
- error "invalid input/output combination: $in_lang/$out_lang";;
+ error 1 "invalid input/output combination: $in_lang/$out_lang";;
esac
cd_orig
P ChangeLog
P doc/texi2dvi.1
P util/defs.in
P util/latex2html.test
P util/texi2dvi
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- texinfo update (Tue Jun 27 12:52:01 EDT 2006),
Karl Berry <=