Angus Leeming wrote: > I am trying to introduce some of the changes I've made in my wrappers tree > back into the cvs, but I have a problem. > > In the xforms/forms directory is a shell script, fdfix.sh that is used to > manipulate the output from fdesign to a form suitable for LyX. I have added > this: > > INTRO_MESSAGE="// File generated by fdesign from ${FDFILE} \n"\ > "// and modified by fdfix.sh for use by LyX.\n\n"\ > "// WARNING! All changes made to this file will be lost!\n\n"\ > "// Copyright $DATE the LyX Team\n// Read the file COPYING" > > echo ${INTRO_MESSAGE} > ${HOUT} > > It works fine of the Tru64 machine, but on the Linux-alpha one results in > this: > > aleem@thorax:forms$ more form_aboutlyx.C > // File generated by fdesign from form_aboutlyx.fd \n// and modified by > fdfix.sh for use by LyX.\n\n// WARNING! All changes made to this file will be > lost!\n\n// Copyright 2002 the LyX Team\n// Read the file COPYING > \n#include <config.h> > #include "forms_gettext.h" > #include "gettext.h" > > Has anyone any ideas?
I propose this one: #!/bin/sh HOUT=file.out FDFILE=file.fd DATE=`date` cat - > ${HOUT} <<EOF // File generated by fdesign from ${FDFILE} // and modified by fdfix.sh for use by LyX. // WARNING! All changes made to this file will be lost! // Copyright $DATE the LyX Team // Read the file COPYING EOF Greetings, Stephan ------------------------------------------------ <[EMAIL PROTECTED]> | beusen Solutions GmbH fon: +49 30 549932-426 | Landsberger Allee 366 fax: +49 30 549932-921 | 12681 Berlin, Germany ------------------------------------------------