environment feature request

2009-08-07 Thread Sam Liddicott
Could Lyx please set some environment variables before it calls it's
conversion routines? It would save the need to customize the conversion.

My current literate-program filter sets them for me:

cat $$i | newfangle -Rlyx-build - | env LYX_b=$$b LYX_i=$$i LYX_o=$$o
LYX_p=$$p LYX_r=$$r NOWEB_SOURCE=$$i bash

With a lyx-build fragment containing:

PROJECT_DIR=$LYX_r
LYX_SRC=$PROJECT_DIR/${LYX_i%.nw}.lyx
NW_DIR=$LYX_p
NW_SRC=$NW_DIR/$LYX_i
cd $PROJECT_DIR || exit 1

so that I can extract files in my lyx document directory.

The extra flag originaldir seems to do nothing.

Sam


environment feature request

2009-08-07 Thread Sam Liddicott
Could Lyx please set some environment variables before it calls it's
conversion routines? It would save the need to customize the conversion.

My current literate-program filter sets them for me:

cat $$i | newfangle -Rlyx-build - | env LYX_b=$$b LYX_i=$$i LYX_o=$$o
LYX_p=$$p LYX_r=$$r NOWEB_SOURCE=$$i bash

With a lyx-build fragment containing:

PROJECT_DIR=$LYX_r
LYX_SRC=$PROJECT_DIR/${LYX_i%.nw}.lyx
NW_DIR=$LYX_p
NW_SRC=$NW_DIR/$LYX_i
cd $PROJECT_DIR || exit 1

so that I can extract files in my lyx document directory.

The extra flag originaldir seems to do nothing.

Sam


environment feature request

2009-08-07 Thread Sam Liddicott
Could Lyx please set some environment variables before it calls it's
conversion routines? It would save the need to customize the conversion.

My current literate->program filter sets them for me:

cat $$i | newfangle -Rlyx-build - | env LYX_b=$$b LYX_i=$$i LYX_o=$$o
LYX_p=$$p LYX_r=$$r NOWEB_SOURCE=$$i bash

With a lyx-build fragment containing:

PROJECT_DIR="$LYX_r"
LYX_SRC="$PROJECT_DIR/${LYX_i%.nw}.lyx"
NW_DIR="$LYX_p"
NW_SRC="$NW_DIR/$LYX_i"
cd $PROJECT_DIR || exit 1

so that I can extract files in my lyx document directory.

The "extra flag" originaldir seems to do nothing.

Sam