Re: [Orgmode] Org update script
> "Scott" == Scott Jaderholm <[EMAIL PROTECTED]> writes: Pete> # ORGDIR is a symbolic link. We get rid of it rm -f $DIR Scott> I'm guessing that should be rm -f $ORGDIR then? Ahh well. It is my wife's birthday, and I should have been doing other things rather than knocking up a quick shell script! Pete ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Org update script
On 4/25/07, Pete Phillips <[EMAIL PROTECTED]> wrote: > Scott Jaderholm <[EMAIL PROTECTED]> writes: Has anyone created a script for updating org? This will do the job. It doesn't compile the lisp file, but I frequently don't bother to do this anyway. :-) I changed it to work without symlinks because I sync the files to Windows, and I added make, and it works great. Thanks! # ORGDIR is a symbolic link. We get rid of it rm -f $DIR I'm guessing that should be rm -f $ORGDIR then? Again, thank you! --Scott ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Org update script
> "Scott" == Scott Jaderholm <[EMAIL PROTECTED]> writes: Scott> Has anyone created a script for updating org? This will do the job. It doesn't compile the lisp file, but I frequently don't bother to do this anyway. :-) This also means that it keeps all old versions, and you can restore an old version by changing the symbolic link if you wish. Save the file as below the dashes as 'update-org.sh' or similar, edit the variables to make sense for your setup, make it executable: chmod +x ~/bin/update-org.sh and then run it. Let me know how it goes. regards Pete -- #!/bin/sh # script to automate pulling the latest org from Carsten's site # PJP [EMAIL PROTECTED] # set up some variables # edit these.!!! # directory where the org directory is located DIR=$HOME/emacs/lisp # the name of the sym link we will create ORGDIR=$DIR/org # duh! TMP=/tmp TMPTAR=$TMP/org.tar.gz # 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 -f $DIR # cd to the lisp directory cd $DIR # unpack the tar file tar xzvf $TMPTAR # what is the new directory name? # (yes I could use awk, but I can write this line faster than I could # check out the man page) ORGVER=`tar tvf $TMPTAR | head -1 | sed 's/ */ /g' | cut -d' ' -f6` # remake the link... ln -s $ORGVER org # and relax echo "$ORGVER is now installed. You can cd to $ORGDIR and run make if you wish. Don't forget to edit the Makefile. " ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode