From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pete Phillips Subject: Re: update-org script Date: Wed, 12 Dec 2007 19:17:57 +0000 Message-ID: <20160.1197487077@localhost> References: <20071212161429.GA4086@pollux> Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J2X5o-0005MH-O9 for emacs-orgmode@gnu.org; Wed, 12 Dec 2007 14:18:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J2X5n-0005ID-3S for emacs-orgmode@gnu.org; Wed, 12 Dec 2007 14:18:04 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J2X5m-0005Ht-Vk for emacs-orgmode@gnu.org; Wed, 12 Dec 2007 14:18:03 -0500 Received: from mailhost.smtl.co.uk ([193.131.77.174]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J2X5l-0001D2-Rh for emacs-orgmode@gnu.org; Wed, 12 Dec 2007 14:18:02 -0500 In-reply-to: <20071212161429.GA4086@pollux> 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: emacs-orgmode@gnu.org Hi Harald. Harald> The "shell script to simplify upgrading to the newest release" Harald> as found on the home page under the Downloads section, Harald> does no longer work as far as I understand. Harald> Oops. I really should put something in my system to make sure I check that I have uploaded the newest versions! Harald> Most important first: the script should read: Harald> Harald> # get the tar file Harald> # [must be a generic name, not a versioned one like org-5.16b.tar.gz] Harald> #wget http://staff.science.uva.nl/~dominik/Tools/org/org.tar.gz Harald> wget http://orgmode.org/org.tar.gz Harald> Obviously, the name of the tar ball must get changed. Yeah. I have fixed my copy of this already! :-) Harald> # directory where the org directory is located Harald> dir=emacs/lisp Harald> DIR=$HOME/$dir Harald> Harald> # make sure we have the lisp dir Harald> # note that 'mkdir -p $DIR' would not work Harald> # mkdir(1): "The user must have write permission in the parent directory." Harald> mkdir -p $dir I can only assume that you are editing the script to put org-mode in a system directory ? In that case you will either need to run it as root, or at least make sure you own the lowest level directory in the ORGDIR variable. The line from the manual just means that if you are trying to create /usr/share/emacs/lisp/org and only /usr/share exists at at that time (usually owned by root) then the command will fail as you can't write into the direcory. You could solve this by doing something like this (as root): mkdir /usr/src/emacs chown YOURNAMEHERE /usr/src/emacs Then set DIR=/usr/src/emacs/lisp and you should be set. Personally I like to keep my lisp files in my home directory. Harald> Finally, I suggest a simpler ORGVER line, the argument to ``-f'' Harald> is apparently system dependent, in my case it must read ``-f9'': Harald> Harald> # what is the new directory name? Harald> # (yes I could use awk, but I can write this line faster than I could Harald> # check out the man page) Harald> #ORGVER=`tar tvf $TMPTAR | head -1 | sed 's/ */ /g' | cut -d' ' -f6` Harald> ORGVER=`tar tf $TMPTAR | head -1` Doh! I wish I'd thought of that! My only excuse is that my fingers have certain UNIX commands pre-programmed into them - anytime I use tar I invariably add the 'v' flag (been doing that for 20 years), and made the task more complex! I have uploaded a new version here: http://www.philfam.co.uk/pete/GTD/org-mode/update-org.sh Thanks for your comments. Regards, Pete PS: Carsten - can you change the link on the org-mode page to point to my philfam location ? Cheers. Pete