summaryrefslogtreecommitdiff
path: root/t/txinfo-other-suffixes.sh
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2013-01-01 22:34:15 +0100
committerStefano Lattarini <stefano.lattarini@gmail.com>2013-01-02 13:09:47 +0100
commite1ed31451f1df01799544a4c6482ae68a1b07019 (patch)
tree35ff112c4483c931dcc9293d18e57fa43ecb3266 /t/txinfo-other-suffixes.sh
parent856394136f1a9dd2e40d728ca429664612b46a38 (diff)
downloadautomake-e1ed31451f1df01799544a4c6482ae68a1b07019.tar.gz
texi: warn against '.txi' and '.texinfo' input suffixes
The warning being in the 'obsolete' category. This is mostly to ease transition to Automake-NG (see commit v1.12.1-416-gd5459b9), and to discourage use of seldom-tested setups. * automake.in (handle_texinfo_helper): Warn against Texinfo input files with '.txi' or '.texinfo' suffixes. * NEWS: Update. * t/txinfo-other-suffixes.sh: Adjust and enhance. * t/txinfo-no-repeated-targets.sh: No longer use '.txi' and '.texinfo' extensions. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/txinfo-other-suffixes.sh')
-rwxr-xr-xt/txinfo-other-suffixes.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/t/txinfo-other-suffixes.sh b/t/txinfo-other-suffixes.sh
index 11f3a041f..cbb3afa88 100755
--- a/t/txinfo-other-suffixes.sh
+++ b/t/txinfo-other-suffixes.sh
@@ -14,7 +14,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test to make sure '.txi' extension works.
+# Test to make sure '.txi' and '.texinfo' extensions are deprecated,
+# but still work.
. test-init.sh
@@ -27,7 +28,12 @@ echo '@setfilename bar.info' > bar.texinfo
: > texinfo.tex
$ACLOCAL
-$AUTOMAKE
+AUTOMAKE_fails
+grep "^Makefile\.am:.*suffix '.txi'.*Texinfo file.*discouraged" stderr
+grep "^Makefile\.am:.*suffix '.texinfo'.*Texinfo file.*discouraged" stderr
+grep "^Makefile\.am:.* use '.texi' instead" stderr
+
+$AUTOMAKE -Wno-obsolete
grep '^\.txi\.info: *$' Makefile.in
grep '^\.texinfo\.info: *$' Makefile.in