head	1.1;
branch	1.1.1;
access;
symbols
	john2:1.1.1.1.0.6
	john1:1.1.1.1
	lapyu-work:1.1.1.1.0.4
	john-work:1.1.1.1.0.2
	SIXALPHA:1.1.1.1
	TEXLIVE:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2000.10.03.04.02.32;	author plaice;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.10.03.04.02.32;	author plaice;	state Exp;
branches;
next	;


desc
@@



1.1
log
@Initial revision
@
text
@#!/bin/sh
# Test conditional text.

: ${srcdir=.}

# Default Info output.
../makeinfo -o cond.out $srcdir/cond.txi || exit 1
egrep 'This is (ifnothtml|ifinfo|ifnottex) text' cond.out >/dev/null \
  || exit 2
test `fgrep ' text.' cond.out | wc -l` -eq 3 || exit 3

# Default HTML output.
../makeinfo --html -o cond.out $srcdir/cond.txi || exit 1
egrep 'This is (html|ifhtml|ifnotinfo|ifnottex) text' cond.out >/dev/null \
 || exit 2
test `fgrep ' text.' cond.out | wc -l` -eq 4 || exit 3

# --ifhtml off, --ifinfo off, --iftex off.
../makeinfo --no-ifhtml --no-ifinfo --no-iftex -o cond.out $srcdir/cond.txi || exit 1
egrep 'This is ifnot(html|info|tex) text' cond.out >/dev/null \
 || exit 2
test `fgrep ' text.' cond.out | wc -l` -eq 3 || exit 3

# Do we really need to test all the other permutations?

# --ifhtml on, --ifinfo on, --iftex on.
../makeinfo --ifhtml --ifinfo --iftex -o cond.out $srcdir/cond.txi || exit 1
egrep 'This is (html|ifhtml|ifinfo|tex|iftex) text' cond.out >/dev/null \
 || exit 2
test `fgrep ' text.' cond.out | wc -l` -eq 5 || exit 3

rm -f cond.out cond.info
@


1.1.1.1
log
@sun2.dante.de download 2/10/2000 of TeXLive (Omega 1.11)
@
text
@@
