emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dave Marquardt <davemarq@us.ibm.com>
To: emacs-orgmode@gnu.org
Subject: Re: The Org->ODT exporter is now in Org's core (latest git)
Date: Thu, 15 Dec 2011 11:08:06 -0600	[thread overview]
Message-ID: <86y5udoj9l.fsf@us.ibm.com> (raw)
In-Reply-To: 8639clpyd2.fsf@us.ibm.com

Dave Marquardt <davemarq@us.ibm.com> writes:

> Dave Marquardt <davemarq@us.ibm.com> writes:
>
>> Jambunathan K <kjambunathan@gmail.com> writes:
>>
>>> Dave Marquardt <davemarq@us.ibm.com> writes:
>>>
>>>> Bastien <bzg@altern.org> writes:
>>>>
>>>>> as the subject says.  Please all test this heavily and report 
>>>>> any problems.  This will be part of Org 7.8 and soon in Emacs.
>>>>>
>>>>> Thanks a lot to Jambunathan for all this efforts, let's make
>>>>> sure everything is smooth before the release!
>>>>
>>>> I installed Org 7.8.02 by downloading the tarball, untarring it, running
>>>> make, then make install install-info.  When I run org-export-as-odt by
>>>> C-c C-e o, I get this message:
>>>>
>>>>        Cannot find factory styles file. Check package dir layout
>>>>
>>>> Setting debug-on-error, I get this traceback.
>>>
>>> Did the suggestions in the followup posts work for you? Could you please
>>> confirm.
>>
>> I haven't had time to check.  I worked around the problem for now by
>> installing the style files by hand.
>
> I tried again with a clean /usr/local/share/emacs/site-lisp.  I ran
> "make all" and "make install install-info", and then tried to export a
> file to ODT.  No change, same problem.
>
> I believe the problem is that the install target in the Makefile doesn't
> copy the style files to $(prefix)/share/emacs/etc/styles or
> $(prefix)/share/emacs/site-lisp/etc/styles as the code expects.

I modified the Makefile to do what I expected.  With this change, "make
install" copies the style files to $(prefix)/share/emacs/etc/styles, and
ODT export now works as expected.

Here's a unified diff:

--- Makefile~	2011-12-15 02:37:30.000000000 -0600
+++ Makefile	2011-12-15 11:02:57.054573287 -0600
@@ -19,6 +19,12 @@
 # Where local lisp files go.
 lispdir   = $(prefix)/share/emacs/site-lisp
 
+# Where etc files go.
+etcdir    = $(prefix)/share/emacs/etc
+
+# Where style files go
+stylesdir = $(etcdir)/styles
+
 # Where info files go.
 infodir = $(prefix)/share/info
 
@@ -175,6 +181,7 @@
 CARDFILES   = doc/orgcard.tex doc/orgcard.pdf doc/orgcard_letter.pdf
 TEXIFILES   = doc/org.texi
 INFOFILES   = doc/org
+STYLESFILES = etc/styles/OrgOdtContentTemplate.xml etc/styles/OrgOdtStyles.xml
 
 # Package Manager (ELPA)
 PKG_TAG = $(shell date +%Y%m%d)
@@ -211,7 +218,7 @@
 
 compile: $(ELCFILES0) $(ELCBFILES)
 
-install: install-lisp
+install: install-lisp install-etc
 
 doc: doc/org.html doc/org.pdf doc/orgcard.pdf doc/orgcard_letter.pdf doc/orgguide.pdf doc/orgcard.txt
 
@@ -231,6 +238,10 @@
 	$(CP) $(INFOFILES) $(infodir)
 	$(INSTALL_INFO) --infodir=$(infodir) $(INFOFILES)
 
+install-etc: $(STYLESFILES)
+	if [ ! -d $(stylesdir) ]; then $(MKDIR) $(stylesdir); else true; fi ;
+	$(CP) $(STYLESFILES) $(stylesdir)
+
 autoloads: lisp/org-install.el
 
 lisp/org-install.el: $(LISPFILES0) Makefile

  parent reply	other threads:[~2011-12-15 17:08 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-10 17:22 The Org->ODT exporter is now in Org's core (latest git) Bastien
2011-12-11  0:27 ` Herbert Sitz
2011-12-11 12:29   ` Bastien
2011-12-11 16:30     ` Thomas
2011-12-11 16:36       ` Thomas
2011-12-11 17:15         ` Bastien
2011-12-11 17:06       ` Herbert Sitz
2011-12-11 17:13       ` Bastien
2011-12-11  0:52 ` suvayu ali
2011-12-11  2:17   ` Mehul Sanghvi
2011-12-11  8:01 ` Christian Moe
2011-12-11 16:46 ` Manish
2011-12-11 19:37   ` Christian Moe
2011-12-11 19:56     ` Manish
2011-12-11 23:20     ` Bastien
2011-12-12 12:28 ` [BUG] Various problems with org-odt export Christian Moe
2011-12-12 13:46   ` Jambunathan K
2011-12-12 20:54     ` Christian Moe
2011-12-15  7:48       ` Jambunathan K
2011-12-13 17:37 ` The Org->ODT exporter is now in Org's core (latest git) Eric S Fraga
2011-12-13 19:23   ` Christian Moe
2011-12-14  8:57     ` Eric S Fraga
2011-12-14 11:10       ` Christian Moe
2011-12-14 14:15         ` Nick Dokos
2011-12-14 16:41           ` Eric S Fraga
2011-12-14 18:48             ` Gary Oberbrunner
2011-12-15  7:19       ` Jambunathan K
2011-12-16 12:37         ` Eric S Fraga
2011-12-15  7:01   ` Jambunathan K
2011-12-16 12:42     ` Eric S Fraga
2011-12-14 20:28 ` Dave Marquardt
2011-12-14 21:35   ` suvayu ali
2011-12-14 21:56     ` Alan L Tyree
2011-12-14 23:20       ` suvayu ali
2011-12-15  0:27         ` Alan L Tyree
2011-12-15  7:16           ` Jambunathan K
2011-12-15  7:26           ` Jambunathan K
2011-12-15  8:58             ` Christian Moe
2011-12-15 10:11               ` Alan L Tyree
2011-12-15 11:20               ` suvayu ali
2011-12-15 10:07             ` Alan L Tyree
2011-12-15 13:59         ` Dave Marquardt
2011-12-15  7:24   ` Jambunathan K
2011-12-15 14:03     ` Dave Marquardt
2011-12-15 16:56       ` Dave Marquardt
2011-12-15 17:06         ` suvayu ali
2011-12-15 17:08         ` Dave Marquardt [this message]
2011-12-16  9:02           ` Achim Gratz
2011-12-20 23:18           ` Bastien
2011-12-20 23:24             ` Dave Marquardt
2011-12-21  8:50               ` Christian Moe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86y5udoj9l.fsf@us.ibm.com \
    --to=davemarq@us.ibm.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).