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->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 <a
href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a>
externally and <a
href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a>
internally within Tech Mahindra.
============================================================================================================================
_______________________________________________
M4-discuss mailing list
M4-discuss@gnu.org
http://lists.gnu.org/mailman/listinfo/m4-discuss