Darren Freeman wrote: > On Sun, 2002-12-01 at 16:18, Rob Lahaye wrote: >>Darren, have a look at v0.3b :) >>Prettyfied it a bit; functionality is same. > > Yes, but still much prettier. > > One functionality change is that it now doesn't check for lyx in the > same directory as $0 which is what I was doing. Because I would aim for > the script to live next to the lyx executable in the long run, that's a > good place to look. Could add `dirname $0`/lyx to the "for i in ..."
Isn't `dirname $0`/lyx same as ./lyx ? The for loop assumes ./lyx and ./src/lyx, which means searching in `dirname $0`/lyx and `dirname $0`/src/lyx. My approach is shorter and easier to read....unless I'm wrong at this point, but I don't think so. I've also added "src/lyx", because that's where you expect the executable to be when you are in the build directory. Cheers, Rob.