Stephan Witt <[EMAIL PROTECTED]> writes:

| 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

Btw. please explain to me why ${FDFILE} is used instead of $FDFILE

It is not very usual.

-- 
        Lgb

Reply via email to