Skip to Content.
Sympa Menu

sm-commit - Re: [SM-Commit] GIT changes to master grimoire by Treeve Jelbert (3fff9e9b7114e803bb4b66d2680838aa6a37ee92)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Jaka Kranjc <lynx AT mages.ath.cx>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: Re: [SM-Commit] GIT changes to master grimoire by Treeve Jelbert (3fff9e9b7114e803bb4b66d2680838aa6a37ee92)
  • Date: Sat, 28 Oct 2006 14:24:02 +0200

On Saturday 28 October 2006 14:01, George Sherwood wrote:
> > if [ -f $SOURCE_DIRECTORY/spell-tmp/pydcop.py ]; then
> > mv $SOURCE_DIRECTORY/spell-tmp/pydcop.py \
> > /usr/lib/python`echo $VERSION|cut -d. -f1,2`
> > fi
> >
> >
> > It works, but I don't know why that isn't failing for you.
>
> Actually looking at it, I think it is failing with the -f1,2 since the
> older version were 4.4.4 and wanting to copy to python2.4 and this is
> 2.5 and need to copy to python2.5, but not sure what is the best fix.
>
> George
I suggest just extracting the first three chars, this will work for both
cases:
/usr/lib/python${VERSION:0:3}

--
We cannot command nature except by obeying her. --Sir Francis Bacon
Have a sourcerous day! www.sourcemage.org

Attachment: pgp2dylox9ft0.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page