Kayvan A. Sylvan wrote:

> Anyone have any ideas about this? Strangely, this is only happening
> on one of my Cygwin systems.
> { [ ../../../../../lyx/src/frontends/xforms/forms != . ] && 
    [ ! -a form_aboutlyx.fd ]

> [: form_aboutlyx.fd: unknown operand

Lars has added this bit of magic recently to xforms/forms/Makefile.am:

.fd.C: $(srcdir)/fdfix.sh $(srcdir)/fdfix[ch].sed 
$(srcdir)/tmp_str.sed
        { [ $(srcdir) != . ] && [ ! -a $(<F) ] && $(LN_S) $< . ; } || true
        $(SHELL) $(SCRIPT) `basename $<`


What he's trying to do is copy the .fd file from the src directory to 
the build directory so that 'fdesign' can be run 'in place'.

My copy of 'unix in a nutshell' tells me that 'test -a' is specific 
to ksh, so this is going to break on systems where "sh means sh, not 
bash".

So, my guess is that you have builddir != srcdir and the creation of 
the symbolic link has failed.

Incidentally, why use both $(<F) and `basename $<`. They;re 
equivalent, aren't they?

> /bin/sh ../../../../../lyx/src/frontends/xforms/forms/fdfix.sh
> `basename
> ../../../../../lyx/src/frontends/xforms/forms/form_aboutlyx.fd`
> Input file does not exist. Cannot continue make[6]: ***
> [form_aboutlyx.C] Error 1 make[6]: Leaving directory
> `/home/ksylvan/src/lyx-build/src/frontends/xforms/forms'


-- 
Angus

Reply via email to