From b00705f9e375e2f6d768085a5b7bd171639589e9 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Fri, 30 Jun 2017 13:06:18 -0400 Subject: [PATCH] doc/Makefile: Use printf to generate org-version.tex * doc/Makefile (org-version.tex): Use printf instead of echo to increase portability. By default GNU coreutil's echo disables the interpretation of backslash escapes (-E option), but this isn't the case for some echo variants. Reported-by: Dale --- doc/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index 87f8c2781..e17d4415b 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -34,11 +34,11 @@ org-version.inc: org.texi @echo "@set DATE $(DATE)" >> org-version.inc org-version.tex: orgcard.tex - @echo "org-version: $(ORGVERSION) ($(GITVERSION))" - @echo "% automatically generated, do not edit" > org-version.tex - @echo "\def\orgversionnumber{$(ORGVERSION)}" >> org-version.tex - @echo "\def\versionyear{$(YEAR)}" >> org-version.tex - @echo "\def\year{$(YEAR)}" >> org-version.tex + @printf "org-version: $(ORGVERSION) ($(GITVERSION))\n" + @printf "%% automatically generated, do not edit\n" > org-version.tex + @printf "\def\orgversionnumber{$(ORGVERSION)}\n" >> org-version.tex + @printf "\def\\\\versionyear{$(YEAR)}\n" >> org-version.tex + @printf "\def\year{$(YEAR)}\n" >> org-version.tex install: org if [ ! -d $(DESTDIR)$(infodir) ]; then $(MKDIR) $(DESTDIR)$(infodir); else true; fi ;