From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Is doc/org-version.tex generation broken? Date: Fri, 30 Jun 2017 13:29:21 -0400 Message-ID: <87wp7t75am.fsf@kyleam.com> References: <8737ah8s4l.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQzjT-0000jS-4n for emacs-orgmode@gnu.org; Fri, 30 Jun 2017 13:29:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQzjQ-00045f-1k for emacs-orgmode@gnu.org; Fri, 30 Jun 2017 13:29:27 -0400 Received: from pb-smtp2.pobox.com ([64.147.108.71]:57856 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dQzjP-00045N-P4 for emacs-orgmode@gnu.org; Fri, 30 Jun 2017 13:29:23 -0400 In-Reply-To: <8737ah8s4l.fsf@kyleam.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Dale , emacs-orgmode@gnu.org Kyle Meyer writes: > Dale writes: [...] >> Is this something screwed up in my environment or are others seeing this as >> well? > > I'm guessing that I should rewrite the command in a more portable way. > Not sure what that is offhand. Can you verify that the below change works on your system? Thanks. -- >8 -- 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 ; -- 2.13.2