From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pete Phillips Subject: Re: Re: Org update script Date: Thu, 26 Apr 2007 06:56:46 +0100 Message-ID: <10436.1177567006@lap1.smtl.co.uk> References: <87abww144m.fsf@pdrechsler.de> Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hh01z-0006Cd-BP for emacs-orgmode@gnu.org; Thu, 26 Apr 2007 05:12:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hh01x-0006CP-Nx for emacs-orgmode@gnu.org; Thu, 26 Apr 2007 05:12:50 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hh01x-0006CL-Aw for emacs-orgmode@gnu.org; Thu, 26 Apr 2007 05:12:49 -0400 Received: from mail.smtl.co.uk ([193.131.77.174] helo=mailhost.smtl.co.uk) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HgzwE-0005S3-3i for emacs-orgmode@gnu.org; Thu, 26 Apr 2007 05:06:54 -0400 In-Reply-To: Message from Carsten Dominik of "Thu, 26 Apr 2007 06:41:42 +0200." 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: Carsten Dominik Cc: emacs-orgmode@gnu.org >>>>> "Carsten" == Carsten Dominik writes: Carsten> org.el is the single biggest Emacs Lisp file in the Emacs Carsten> distribution. Carsten> I would always recommend doing the compilation step. It Carsten> speeds up loading of the file, and the general performance Carsten> is much better. This will do the job. Just make sure you edit EMACSBIN to point to the path of your emacs binary. Pete (I will put this up for ftp at some stage) ------------------------------------------------------------- #!/bin/sh # script to automate pullingthe latest org from Carsten's site # PJP pete@smtl.co.uk # $Revision: 1.1 $ # $Log: update-org.sh,v $ # Revision 1.1 2007/04/26 05:53:54 pete # Initial revision # # set up some variables # EDIT THESE.!!! # directory where the org directory is located DIR=$HOME/emacs/lisp ORGDIR=$DIR/org TMP=/tmp TMPTAR=$TMP/org.tar.gz # This is where I keep my copy of CVS emacs. EMACSBIN=/usr/local/emacs-cvs/bin/emacs #EMACSBIN=/usr/local/bin/emacs # you should not need to edit anything else below here # go to the tmp dir cd $TMP # make sure we have the lisp dir mkdir -p $DIR # get the tar file wget http://staff.science.uva.nl/~dominik/Tools/org/org.tar.gz # ORGDIR is a symbolic link. We get rid of it rm $ORGDIR # cd to the lisp directory cd $DIR # unpack the tar file tar xzvf $TMPTAR # what is the new directory name? ORGVER=`tar tvf $TMPTAR | head -1 | sed 's/ */ /g' | cut -d' ' -f6` # remake the link... ln -s $ORGVER org # make ... cd $ORGDIR mv Makefile Makefile.orig sed s:EMACS=emacs:EMACS=$EMACSBIN: < Makefile.orig > Makefile make