m4-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

m4: Unable to include file --urgent help required


From: Pratibha Chelekar
Subject: m4: Unable to include file --urgent help required
Date: Fri, 29 Jun 2007 17:10:41 +0100

Hi All,

 

I have created a file common.m4. File contents are provided below

 

divert(-1)

 

changequote([[, ]])

 

define([[_TABLE]], [[

<TABLE>

<TR><TH>Stationery:</TH><TD>$1</TD></TR>

<TR><TH>Inserts:</TH><TD>$2</TD></TR>

<TR><TH>Letter owner:</TH><TD>$3</TD></TR>

<TR><TH>Designer:</TH><TD>$4</TD></TR>

<TR><TH>Last modified:</TH><TD>$5</TD></TR>

<TR><TH>Version:</TH><TD>$6</TD></TR>

<TR><TH>Manual(M) or Automatic(A):</TH><TD>$7</TD></TR>

<TR><TH>Postage class:</TH><TD>$8</TD></TR>

</TABLE>

]])

define([[_AX3101P_HEADER]], [[ <DIV CLASS="header"><TABLE> <TR> <TD CLASS="left">Your account number<BR><SPAN CLASS="bal">ACC_

DISTRICT_ID</SPAN> <SPAN CLASS="fixed">accountNumber</SPAN><BR><BR>Customer reference number<BR><SPAN CLASS="fixed">owningCust

omerNode-&gt;id</SPAN><BR><BR>Date<BR><SPAN CLASS="bal">LETTDTCH</SPAN> </TD> <TD> <SPAN CLASS="fixed">addressName</SPAN><BR>

<SPAN CLASS="fixed">address1</SPAN><BR> <SPAN CLASS="fixed">address2</SPAN><BR> <SPAN CLASS="fixed">address3</SPAN><BR> <SPAN

CLASS="fixed">address4</SPAN><BR> <SPAN CLASS="fixed">address5</SPAN> </TD> </TR> </TABLE></DIV>]])

define([[_BLANK_HEADER]], [[ <DIV CLASS="header"></DIV>]])

 

define([[_AXP01F_HEADER]], [[ <DIV CLASS="header"><SPAN CLASS="fixed">addressName</SPAN><BR><SPAN CLASS="fixed">address1</SPAN

><BR><SPAN CLASS="fixed">address2</SPAN><BR><SPAN CLASS="fixed">address3</SPAN><BR><SPAN CLASS="fixed">address4</SPAN><BR><SPA

N CLASS="fixed">address5</SPAN></DIV>]])

define([[_AX3111P_HEADER]], [[ <DIV CLASS="header"><TABLE> <TR> <TD CLASS="left">Your account number<BR><SPAN CLASS="bal">ACC_

DISTRICT_ID</SPAN> <SPAN CLASS="fixed">accountNumber</SPAN><BR><BR>Date<BR><SPAN CLASS="bal">LETTDTCH</SPAN><BR><BR>If you hav

e a query please see reverse for our contact details </TD> <TD> <SPAN CLASS="fixed">addressName</SPAN><BR> <SPAN CLASS="fixed"

>address1</SPAN><BR> <SPAN CLASS="fixed">address2</SPAN><BR> <SPAN CLASS="fixed">address3</SPAN><BR> <SPAN CLASS="fixed">addre

ss4</SPAN><BR> <SPAN CLASS="fixed">address5</SPAN> </TD> </TR> </TABLE></DIV>]])

define([[_AX3000_HEADER]], [[ <DIV CLASS="header"><TABLE> <TR> <TD CLASS="left">Your account number<BR><SPAN CLASS="bal">ACC_D

ISTRICT_ID</SPAN> <SPAN CLASS="fixed">accountNumber</SPAN><BR><BR>Date<BR><SPAN CLASS="bal">LETTDTCH</SPAN><BR><BR>If you have

 a query please see reverse for our contact details </TD> <TD> <SPAN CLASS="fixed">addressName</SPAN><BR> <SPAN CLASS="fixed">

address1</SPAN><BR> <SPAN CLASS="fixed">address2</SPAN><BR> <SPAN CLASS="fixed">address3</SPAN><BR> <SPAN CLASS="fixed">addres

s4</SPAN><BR> <SPAN CLASS="fixed">address5</SPAN> </TD> </TR> </TABLE></DIV>]])

 

define([[_AX3000_FOOTER]], [[<DIV CLASS="footer"></DIV>]])

define([[_AX3101P_FOOTER]], [[<DIV CLASS="footer"></DIV>]])

define([[_AX3111P_FOOTER]], [[<DIV CLASS="footer"></DIV>]])

 

I have included this file in ZF01.m4 file using below command

include (common.m4)

 

But when I executed “m4 ZF01.m4 > ZF01.html” command from UNIX prompt, I am getting below error message

m4:ZF01.m4:common.m4:17 bad macro name

 

Both common.m4 and ZF01.m4 are present in the same directory. Later on I added quotes to the common.m4 -- > include (‘common.m4’)

And executed the command, now I am getting below different error message

m4:ZF01.m4:81 can't open file

include('common.m4')

 

I tried using full path of common.m4 inside () and also tried to set up M4PATH to common.m4 path, but no luck, still getting same error message.

 

Any idea what could be the problem?

 

Regards,

Pratibha

 

 

 

============================================================================================================================

Disclaimer:

This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html externally and http://tim.techmahindra.com/Disclaimer.html internally within Tech Mahindra.

============================================================================================================================

reply via email to

[Prev in Thread] Current Thread [Next in Thread]