From: Enrico Forestieri Date: Sat, 23 May 2015 23:13:41 +0000 (+0200) Subject: Set the origin tag to the proper directory at install time. X-Git-Tag: 2.2.0alpha1~670 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7c48bb0208fac84155a83d2f24041dd0c9198776;p=lyx.git Set the origin tag to the proper directory at install time. --- 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"; \