From 7c48bb0208fac84155a83d2f24041dd0c9198776 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 24 May 2015 01:13:41 +0200 Subject: [PATCH] Set the origin tag to the proper directory at install time. --- lib/doc/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/doc/Makefile.am b/lib/doc/Makefile.am index f628e01f91..38c545b171 100644 --- a/lib/doc/Makefile.am +++ b/lib/doc/Makefile.am @@ -322,9 +322,11 @@ doc_files = \ install-data-hook: for i in $(doc_files); \ do \ - if $(EGREP) -q "LYX_DIR_VER|LYX_USERDIR_VER" "$(DESTDIR)$(docdir)/$$i"; then \ + if $(EGREP) -q "LYX_DIR_VER|LYX_USERDIR_VER|^\\origin " "$(DESTDIR)$(docdir)/$$i"; then \ + origin=`dirname "$(docdir)/$$i"`/; \ sed -e "s/LYX_DIR_VER/$(LYX_DIR_VER)/g" \ -e "s/LYX_USERDIR_VER/$(LYX_USERDIR_VER)/g" \ + -e "s|^\\\\origin .*|\\\\origin $$origin|" \ "$(DESTDIR)$(docdir)/$$i" > "$(DESTDIR)$(docdir)/$$i.tmp"; \ mv -f "$(DESTDIR)$(docdir)/$$i.tmp" "$(DESTDIR)$(docdir)/$$i"; \ chmod 644 "$(DESTDIR)$(docdir)/$$i"; \ -- 2.39.2