emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Pete Phillips <pete@smtl.co.uk>
To: emacs-orgmode@gnu.org
Subject: Re: update-org script
Date: Wed, 12 Dec 2007 19:17:57 +0000	[thread overview]
Message-ID: <20160.1197487077@localhost> (raw)
In-Reply-To: <20071212161429.GA4086@pollux>


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

  reply	other threads:[~2007-12-12 19:18 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-12 16:14 update-org script Harald Weis
2007-12-12 19:17 ` Pete Phillips [this message]
2007-12-13 13:42   ` User Harald
2007-12-13 15:00     ` Dan Griswold
2007-12-13 15:37       ` Dan Griswold
2007-12-13 17:24       ` Pete Phillips
2007-12-13 19:20         ` Harald Weis
2007-12-13 19:23         ` Dan Griswold
2007-12-13 19:33           ` Harald Weis
2007-12-13 22:40             ` Dan Griswold
2007-12-13 22:32         ` Carsten Dominik
2007-12-14  1:23           ` Dan Griswold
2007-12-14  7:20             ` Carsten Dominik
2007-12-14  8:44               ` Pete Phillips
2007-12-14  8:53                 ` Carsten Dominik
2007-12-14 12:47                   ` Dan Griswold
2007-12-14 13:14                     ` Carsten Dominik
2007-12-14 13:39                     ` Peder O. Klingenberg
2007-12-14 15:38                       ` Carsten Dominik
2007-12-14 11:50             ` Harald Weis
2007-12-14 12:00               ` Manish
2007-12-14 12:17                 ` Harald Weis
2007-12-14 12:19               ` Bastien

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=20160.1197487077@localhost \
    --to=pete@smtl.co.uk \
    --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).