Ah, got it - I can set output filename directly in the template. But is there a
way
to specify access rights for it? I mean smth like 0644 - standard unix rights.
To get a complete example:
my.xml:
<?xml version="1.0"?>
<ag_network template="etc-network-interfaces.tpl">
<iface>
eth0
</iface>
<type>
dhcp
</type>
<addr>
192.168.1.2
</addr>
<mask>
255.255.255.0
</mask>
</ag_network>
etc-network-interfaces.tpl:
[+ autogen5 template /tmp/network/interfaces +]
iface [+iface+] inet [+IF (== (get "type") "dhcp") +] dhcp
[+ELSE "error is in the line above" +] static
address [+ addr +]
netmask [+ mask +]
[+ENDIF "End of static/dynamic choice" +]
Now it fails on a line with IF due to "macros cannot nest" but I do not see any
nested macro in here.
best regards,
Olga.
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos. Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Autogen-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/autogen-users