automake-ng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Automake-NG] [PATCH 18/26] [ng] coverage: texinfo input files using


From: Akim Demaille
Subject: Re: [Automake-NG] [PATCH 18/26] [ng] coverage: texinfo input files using @include directives
Date: Sun, 17 Jun 2012 09:05:50 +0200

Le 16 juin 2012 à 23:30, Stefano Lattarini a écrit :

> +cat > three.texi << 'END'
> address@hidden three
> address@hidden Chapter two
> +Gnu's Not Unix.

It should read GNU.

> +END
> +
> +mkdir sub
> +
> +cat > sub/more.texi << 'END'
> +\input texinfo
> address@hidden more.info
> address@hidden main
> address@hidden
> address@hidden Top
> address@hidden GNU more.
> address@hidden
> +* desc:: Description of this program
> +* hist:: History of this program

Good idea, when will you do it? :)

> +get_info_names ()
> +{
> +  find ${1-.} -type f | grep '\.info$' | LC_ALL=C sort > got

Can't you use -name '*.info'?


> +}
> +
> +check_expected ()
> +{
> +  cat exp
> +  cat got
> +  diff exp got
> +}
> +
> +$ACLOCAL
> +$AUTOMAKE --add-missing
> +$AUTOCONF
> +
> +./configure
> +
> +$MAKE info
> +get_info_names
> +check_expected
> +
> +check_info_contents
> +
> +$MAKE dvi
> +test -f main.dvi
> +test -f sub/more.dvi
> +
> +$MAKE maintainer-clean
> +test ! -f main.dvi
> +test ! -f sub/more.dvi
> +test ! -f main.info
> +test ! -f sub/more.info
> +
> +mkdir build
> +cd build
> +../configure
> +$MAKE all dvi
> +
> +get_info_names ..
> +sed 's|^\./|../|' ../exp > exp
> +check_expected
> +
> +test -f main.dvi
> +test -f sub/more.dvi
> +
> +check_info_contents ..
> +
> +$MAKE distcheck
> +
> +:
> -- 
> 1.7.9.5
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]