[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Is doc/org-version.tex generation broken?
From: |
Kyle Meyer |
Subject: |
Re: [O] Is doc/org-version.tex generation broken? |
Date: |
Fri, 30 Jun 2017 13:29:21 -0400 |
Kyle Meyer <address@hidden> writes:
> Dale <address@hidden> 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 <address@hidden>
<https://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00619.html>
---
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