emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org-mode Makefile: make clean needed? make doc error?
@ 2009-09-05 23:39 Daniel Martins
  2009-09-10 20:25 ` Samuel Wales
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Martins @ 2009-09-05 23:39 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org


[-- Attachment #1.1: Type: text/plain, Size: 1400 bytes --]

Keeping update with org-mode has giving me some headaches with the Makefile
These headaches come from my lack of knowledge probably.


First is the necessity or not of

make clean

before

make

forcing to recompile ALL *.el even those unchanged. On slow computers, maybe
this is a problem.

The other problem is

make doc

I am always getting the Fatal Error below

daniel@martins:~/emacs-lisp/org-mode$ make doc
(cd doc; texi2pdf org.texi)
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./txiversion.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang,
noh
yphenation, portuguese, loaded.
(/home/daniel/emacs-lisp/org-mode/doc/texinfo.tex
Loading texinfo [version 2003-02-03.16]: Basics, pdf,
(/usr/share/texmf-texlive/tex/plain/misc/pdfcolor.tex) fonts,
! Undefined control sequence.
\resetmathfonts ...font 2=\tensy \textfont \itfam
                                                  =\tenit \textfont \slfam
=...
l.1414 \textfonts

?
! Emergency stop.
\resetmathfonts ...font 2=\tensy \textfont \itfam
                                                  =\tenit \textfont \slfam
=...
l.1414 \textfonts

!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on txiversion.log.
/usr/bin/texi2dvi: texinfo.tex appears to be broken, quitting.
make: ** [doc/org.pdf] Erro 1

[-- Attachment #1.2: Type: text/html, Size: 1624 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Org-mode Makefile: make clean needed? make doc error?
  2009-09-05 23:39 Org-mode Makefile: make clean needed? make doc error? Daniel Martins
@ 2009-09-10 20:25 ` Samuel Wales
  2009-09-11 15:30   ` Daniel Martins
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Wales @ 2009-09-10 20:25 UTC (permalink / raw)
  To: Daniel Martins; +Cc: emacs-orgmode@gnu.org

Perhaps the makefile could use texi2html and emacs-w3m could display?

Also, AFAIK, git pull does not return an exit status, so && will always execute.

One solution:

                head=`git rev-parse --verify HEAD`
                git pull
                git status
                newhead=`git rev-parse --verify HEAD`
                if [ "$newhead" != "$head" ]
                then
                        #does make clean ret exit code?
                        account echodoq1 make cleanall > elup--make-clean &&
                                echo \=== make &&
                                make>elup--make 2>&1 &&
                                echo &&
                                cat elup--make | account mygrep error
                        diffoldnew cat doc/org.texi
                        #make install ... unnec unless you want
                        #delorg to be backed up.  if so then
                        #install setting prefix lispdir etc. in
                        #some annoying way
                fi

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Org-mode Makefile: make clean needed? make doc error?
  2009-09-10 20:25 ` Samuel Wales
@ 2009-09-11 15:30   ` Daniel Martins
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Martins @ 2009-09-11 15:30 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode@gnu.org


[-- Attachment #1.1: Type: text/plain, Size: 1705 bytes --]

Thanks Samuel,

I would suggest to include your script as another directive for Makefile (if
possible)

In older machines this unneeded compilations takes a lot of time


Daniel

PS It works. I put the script below in a file OrgUpdate

daniel@martins:~/Trabalho/svn/lib/emacs-lisp/org-mode$ OrgUpdate
Already up-to-date.
# On branch master
# Changed but not updated:
#   (use "git add <file>..." to update what will be committed)
#
#    modified:   Makefile
#
no changes added to commit (use "git add" and/or "git commit -a")
daniel@martins:~/Trabalho/svn/lib/emacs-lisp/org-mode$



2009/9/10 Samuel Wales <samologist@gmail.com>

> Perhaps the makefile could use texi2html and emacs-w3m could display?
>
> Also, AFAIK, git pull does not return an exit status, so && will always
> execute.
>
> One solution:
>
>                head=`git rev-parse --verify HEAD`
>                git pull
>                git status
>                newhead=`git rev-parse --verify HEAD`
>                if [ "$newhead" != "$head" ]
>                then
>                        #does make clean ret exit code?
>                        account echodoq1 make cleanall > elup--make-clean &&
>                                echo \=== make &&
>                                make>elup--make 2>&1 &&
>                                echo &&
>                                cat elup--make | account mygrep error
>                        diffoldnew cat doc/org.texi
>                        #make install ... unnec unless you want
>                        #delorg to be backed up.  if so then
>                        #install setting prefix lispdir etc. in
>                        #some annoying way
>                fi
>

[-- Attachment #1.2: Type: text/html, Size: 2239 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-11 16:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-05 23:39 Org-mode Makefile: make clean needed? make doc error? Daniel Martins
2009-09-10 20:25 ` Samuel Wales
2009-09-11 15:30   ` Daniel Martins

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).