[PATCH] Re: [XForms] Getting rid of auto-generated files...

Angus Leeming angus.leeming at btopenworld.com
Wed Nov 26 09:08:29 EST 2003

On Wednesday 26 November 2003 1:55 pm, Jean-Marc Lasgouttes wrote:
> The fdesign problem, OTOH is definitely a bug that should be fixed
> before 1.1.

The little wrapper script, attached, gives us the functionality that I think 
that fdesign should have.

$ sh fdesign2c <path to fdesign executable> <foo/bar/your_file.fd> <destdir>

The only problem with the script is in the lst line:
# If ${SRCDIR} != ${DESTDIR} then
# move the generated .[ch] files to ${DESTDIR}.
mv -f `basename ${FDFILE} .fd`.[ch] ${DESTDIR}

I have no idea how to test that ${SRCDIR} != ${DESTDIR}.
Consequently, I get errors:

mv: `butttypes_gui.c' and 
`/home/angus/xforms/xforms/build/demos/../../demos/fd/butttypes_gui.c' are 
the same file
mv: `butttypes_gui.h' and 
`/home/angus/xforms/xforms/build/demos/../../demos/fd/butttypes_gui.h' are 
the same file

Any ideas?

ps, once this is working, then modifying Makefile.am is a snip. Equally, it 
should provide the template to modify fdesign itself. I'd imagine using 
fdesign as
$ fdesign -convert <foo/bar/your_file.fd> <destdir>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fdesign2c
Type: application/x-shellscript
Size: 1216 bytes
Desc: not available
Url : attachments/20031126/ea9449d5/attachment-0010.bin 

More information about the Xforms mailing list