From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Martins Subject: Re: Org-mode Makefile: make clean needed? make doc error? Date: Fri, 11 Sep 2009 12:30:12 -0300 Message-ID: <6ac505ad0909110830y34f10acbn37a5eff1898adbae@mail.gmail.com> References: <6ac505ad0909051639j6be2a13fn8d68338fede6f025@mail.gmail.com> <20524da70909101325t5b08db7fod47cc3b23f39a41e@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1464655866==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mm8Xc-0001hM-Km for emacs-orgmode@gnu.org; Fri, 11 Sep 2009 12:00:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mm8XX-0001f7-Ns for Emacs-orgmode@gnu.org; Fri, 11 Sep 2009 12:00:04 -0400 Received: from [199.232.76.173] (port=37250 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mm8XX-0001er-CW for Emacs-orgmode@gnu.org; Fri, 11 Sep 2009 11:59:59 -0400 Received: from mail-qy0-f181.google.com ([209.85.221.181]:49879) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mm8XV-0006G7-UK for Emacs-orgmode@gnu.org; Fri, 11 Sep 2009 11:59:59 -0400 Received: by qyk11 with SMTP id 11so1032062qyk.1 for ; Fri, 11 Sep 2009 08:59:51 -0700 (PDT) In-Reply-To: <20524da70909101325t5b08db7fod47cc3b23f39a41e@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Samuel Wales Cc: "emacs-orgmode@gnu.org" --===============1464655866== Content-Type: multipart/alternative; boundary=000feae85bd5f89ff904734efdb6 --000feae85bd5f89ff904734efdb6 Content-Type: text/plain; charset=ISO-8859-1 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 ..." 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 > 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 > --000feae85bd5f89ff904734efdb6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Samuel,

I would suggest to include your script as another dir= ective for Makefile (if possible)

In older machines this unneeded c= ompilations takes a lot of time


Daniel

PS It works. I pu= t the script below in a file OrgUpdate

daniel@martins:~/Trabalho/svn/lib/emacs-lisp/org-mode$ OrgUpdate
Al= ready up-to-date.
# On branch master
# Changed but not updated:
#= =A0=A0 (use "git add <file>..." to update what will be comm= itted)
#
#=A0=A0=A0 modified:=A0=A0 Makefile
#
no changes added to commit= (use "git add" and/or "git commit -a")
daniel@marti= ns:~/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 al= ways execute.

One solution:

=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0head=3D`git rev-parse --verify HEAD`
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0git pull
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0git status
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0newhead=3D`git rev-parse --verify HEAD`
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if [ "$newhead" !=3D "$head&= quot; ]
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0then
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0#does make clean ret exit c= ode?
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0account echodoq1 make clean= all > elup--make-clean &&
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0echo \=3D= =3D=3D make &&
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0make>elu= p--make 2>&1 &&
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0echo &&= amp;
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0cat elup--m= ake | account mygrep error
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0diffoldnew cat doc/org.texi=
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0#make install ... unnec unl= ess you want
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0#delorg to be backed up. = =A0if so then
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0#install setting prefix lis= pdir etc. in
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0#some annoying way
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0fi

--000feae85bd5f89ff904734efdb6-- --===============1464655866== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1464655866==--