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

Jaka Kranjc lynx at mages.ath.cx
Sat Oct 28 08:24:02 EDT 2006


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/sm-commit/attachments/20061028/a6ff1ebc/attachment.bin 


More information about the SM-Commit mailing list