aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2024-03-29 17:59:38 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2024-03-31 16:54:33 +0000
commit14d0c863aa9415f5d78047910233d67d91f4ecf5 (patch)
tree2a9073fa0891d1dd73a4f31d62faaa6855498137
parentec2c15f14f2278d431756f3d05e6ab7f436bea5e (diff)
downloadgcc-14d0c863aa9415f5d78047910233d67d91f4ecf5.zip
gcc-14d0c863aa9415f5d78047910233d67d91f4ecf5.tar.gz
gcc-14d0c863aa9415f5d78047910233d67d91f4ecf5.tar.bz2
modula2: Fix m2.install-info in gcc/m2/Make-lang.in
Fix a few typos: the generated filename is m2.info (not gm2.info, and gm2$(exeext) is a file not a directory (so test -d would always fail). 2024-03-29 Christophe Lyon <christophe.lyon@linaro.org> gcc/m2/ * Make-lang.in (m2.install-info): Fix rule.
-rw-r--r--gcc/m2/Make-lang.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/m2/Make-lang.in b/gcc/m2/Make-lang.in
index 2d8a47a..e56240b 100644
--- a/gcc/m2/Make-lang.in
+++ b/gcc/m2/Make-lang.in
@@ -400,20 +400,20 @@ m2.install-common: installdirs
done
m2.install-info: installdirs
- if [ -d gm2$(exeext) ] ; then \
- if [ -f $(objdir)/doc/gm2.info ]; then \
- rm -f $(DESTDIR)$(infodir)/gm2.info*; \
- for f in $(objdir)/doc/gm2.info*; do \
+ if [ -f gm2$(exeext) ] ; then \
+ if [ -f $(objdir)/doc/m2.info ]; then \
+ rm -f $(DESTDIR)$(infodir)/m2.info*; \
+ for f in $(objdir)/doc/m2.info*; do \
realfile=`echo $$f | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
rm -f $(DESTDIR)$(infodir)/`basename $$realfile`; \
$(INSTALL_DATA) $$f $(DESTDIR)$(infodir)/`basename $$realfile`; \
done; \
- chmod a-x $(DESTDIR)$(infodir)/gm2.info*; \
+ chmod a-x $(DESTDIR)$(infodir)/m2.info*; \
else true; fi; \
else true; fi
- -if [ -f gm2$(exeext) ] && [ -f $(DESTDIR)$(infodir)/gm2.info ]; then \
+ -if [ -f gm2$(exeext) ] && [ -f $(DESTDIR)$(infodir)/m2.info ]; then \
if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
- install-info --dir-file=$(infodir)/dir $(DESTDIR)$(infodir)/gm2.info; \
+ install-info --dir-file=$(infodir)/dir $(DESTDIR)$(infodir)/m2.info; \
else true; fi; \
else true; fi