Angus Leeming wrote:
> Christian, I tried to replace the uploaded copy of
> lyxpreview2bitmap.sh on the Wiki with this:
> 
> #! /bin/sh
> python `dirname $0`/lyxpreview2ppm.py "$@"

Actually, what I really want is:

#! /bin/sh
dir=`dirname $0` || {
        echo "Error: $0"
        echo 'Please install `dirname` or hardwire the path to lyxpreview2ppm.py'
        exit 1
}

python "${dir}"/lyxpreview2ppm.py "$@"


> The upload didn't complain, so I don't understand why it's the old,
> buggy version that is downloaded.
> 
> http://wiki.lyx.org/upload/LyX/InstantPreview/lyxpreview2bitmap.sh
> 
> Maybe I'm just adding another file to a different location?
> 
> Regards,
> Angus

-- 
Angus



Reply via email to