[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
texi2dvi: Support --build
From: |
Akim Demaille |
Subject: |
texi2dvi: Support --build |
Date: |
Wed, 05 Oct 2005 10:27:08 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
Index: ChangeLog
from Akim Demaille <address@hidden>
* util/texi2dvi.test: Make sure --build=clean passes.
* util/texi2dvi: Fix the handling of --build.
Index: util/texi2dvi
===================================================================
RCS file: /cvsroot/texinfo/texinfo/util/texi2dvi,v
retrieving revision 1.63
diff -u -u -r1.63 texi2dvi
--- util/texi2dvi 29 Sep 2005 21:06:23 -0000 1.63
+++ util/texi2dvi 5 Oct 2005 08:26:35 -0000
@@ -848,8 +848,9 @@
-@ ) escape=@;;
# Silently and without documentation accept -b and --b[atch] as synonyms.
-b | --batch) batch=true;;
- -c | --clean) build_mode=clean;;
+ --build) shift; build_mode=$1;;
--build-dir) shift; build_dir=$1; build_mode=tidy;;
+ -c | --clean) build_mode=clean;;
-D | --debug) debug=true;;
-e | -E | --expand) expand=t;;
-h | --help) echo "$usage"; exit 0;;
Index: util/texi2dvi.test
===================================================================
RCS file: /cvsroot/texinfo/texinfo/util/texi2dvi.test,v
retrieving revision 1.1
diff -u -u -r1.1 texi2dvi.test
--- util/texi2dvi.test 30 Sep 2005 17:21:49 -0000 1.1
+++ util/texi2dvi.test 5 Oct 2005 08:26:35 -0000
@@ -36,6 +36,16 @@
test "`list_files`" = "input.texi output.dvi"
rm output.dvi
+TEXI2DVI_pass --build=clean --batch input.texi -o output.dvi
+# There should only be the DVI and the TEXI file.
+test "`list_files`" = "input.texi output.dvi"
+rm output.dvi
+
+TEXI2DVI_pass --build=tidy --batch input.texi -o output.dvi
+# There should only be the DVI and the TEXI file.
+test "`list_files`" = "input.t2d input.texi output.dvi"
+rm -r input.t2d output.dvi
+
cp input.texi input2.texi
TEXI2DVI_pass --clean --batch input.texi input2.texi
- texi2dvi: Support --build,
Akim Demaille <=