gcc: quote characters in texi source
authorFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Mon, 2 Nov 2020 20:15:10 +0000 (21:15 +0100)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Mon, 2 Nov 2020 20:15:10 +0000 (21:15 +0100)
gcc/ChangeLog:

PR bootstrap/57076
* Makefile.in (gcc-vers.texi): Quote @, { and }.

gcc/Makefile.in

index 7b94497b6f2e1f126f0a9f73aedf62fb3c28a796..978a08f7b04bea7e7c41f841dc24b773c1adcfe2 100644 (file)
@@ -3286,7 +3286,7 @@ gcc-vers.texi: $(BASEVER) $(DEVPHASE)
         then echo "@set DEVELOPMENT"; \
         else echo "@clear DEVELOPMENT"; \
         fi) > $@T
-       $(build_file_translate) echo @set srcdir $(abs_srcdir) >> $@T
+       $(build_file_translate) echo @set srcdir `echo $(abs_srcdir) | sed -e 's|\\([@{}]\\)|@\\1|g'` >> $@T
        if [ -n "$(PKGVERSION)" ]; then \
          echo "@set VERSION_PACKAGE $(PKGVERSION)" >> $@T; \
        fi