Jean-Marc Lasgouttes wrote: >>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: > > Angus> Second thought. Have a shell script that just initialises > such Angus> variables and call it from lyxpreview2bitmap.sh. Get > configure Angus> to autogenerate this script > > This would not solve my problem, for example (where I need to use > 'babel' as command). No amount to configure trickery will be able to > replace reading from the prefs. > > But I agree that your solution of generating a small script would be > already nice. However, how will lyxpreview2bitmap.sh find it, if it > is in ~/.lyx-1.3.3/, for example?
Am I not correct to say that the name of the user lyxdir is set at configure(old)/make(new) time? Yes, I know I'm correct to say this. Then, perhaps we could add something like: run_script_file() { test $# -ge 1 || { echo "Usage: run_script_file <file name> <args>" exit 1 } [EMAIL PROTECTED]@ [EMAIL PROTECTED]@ [EMAIL PROTECTED]@ test -r $USER_LYXDIR/scripts/$1 && { $1=$USER_LYXDIR/scripts/$1 sh $* return $? } test -r $SYSTEM_LYXDIR/scripts/$1 && { $1=$SYSTEM_LYXDIR/scripts/$1 sh $* return $? } test -r $BUILD_LYXDIR/scripts/$1 && { $1=$BUILD_LYXDIR/scripts/$1 sh $* return $? } return 1 } -- Angus