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 <dale@codefu.org> <https://lists.gnu.org/archive/html/emacs-orgmode/2017-06/msg00619.html>
This commit is contained in:
parent
4f90f44af3
commit
b00705f9e3
10
doc/Makefile
10
doc/Makefile
|
@ -34,11 +34,11 @@ org-version.inc: org.texi
|
||||||
@echo "@set DATE $(DATE)" >> org-version.inc
|
@echo "@set DATE $(DATE)" >> org-version.inc
|
||||||
|
|
||||||
org-version.tex: orgcard.tex
|
org-version.tex: orgcard.tex
|
||||||
@echo "org-version: $(ORGVERSION) ($(GITVERSION))"
|
@printf "org-version: $(ORGVERSION) ($(GITVERSION))\n"
|
||||||
@echo "% automatically generated, do not edit" > org-version.tex
|
@printf "%% automatically generated, do not edit\n" > org-version.tex
|
||||||
@echo "\def\orgversionnumber{$(ORGVERSION)}" >> org-version.tex
|
@printf "\def\orgversionnumber{$(ORGVERSION)}\n" >> org-version.tex
|
||||||
@echo "\def\versionyear{$(YEAR)}" >> org-version.tex
|
@printf "\def\\\\versionyear{$(YEAR)}\n" >> org-version.tex
|
||||||
@echo "\def\year{$(YEAR)}" >> org-version.tex
|
@printf "\def\year{$(YEAR)}\n" >> org-version.tex
|
||||||
|
|
||||||
install: org
|
install: org
|
||||||
if [ ! -d $(DESTDIR)$(infodir) ]; then $(MKDIR) $(DESTDIR)$(infodir); else true; fi ;
|
if [ ! -d $(DESTDIR)$(infodir) ]; then $(MKDIR) $(DESTDIR)$(infodir); else true; fi ;
|
||||||
|
|
Loading…
Reference in New Issue