Le 16 juin 2012 à 23:30, Stefano Lattarini a écrit :
> +cat > three.texi << 'END'
> +@node three
> +@chapter Chapter two
> +Gnu's Not Unix.
It should read GNU.
> +END
> +
> +mkdir sub
> +
> +cat > sub/more.texi << 'END'
> +\input texinfo
> +@setfilename more.info
> +@settitle main
> +@ifnottex
> +@node Top
> +@top GNU more.
> +@menu
> +* 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
>
>