Kevin Pfeiffer scripsit:
> I'm using the following shell script as part of the latex->dvi LyX
> converter and I want to use a relative path to the needed "index-list"
> file (located in same dir as LyX document). Is there a way that LyX can
> pass its current document path to this script?

What about

INDEXLIST=$(dirname $1)

? Read dirname(1) for more.

Matěj

-- 
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
They never open their mouths without subtracting from the sum of
human knowledge.
      -- Thomas Brackett Reed


Reply via email to