<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:10pt;font-family:Bitstream Vera Sans">
<p>Op Tuesday 04 December 2007 06:32:36 schreef Gunnar Wrobel:</p>
<p>> > If you don't mind too much, I'll commit the script into the template</p>
<p>> > directory (if the future proofs otherwise it can be moved to the than</p>
<p>> > better location). If you do mind and insist of having it in</p>
<p>> > template-tools, please let me know (or just commit it yourself into</p>
<p>> > template-tools ;) )</p>
<p>></p>
<p>> Okay, do it ;)</p>
<p></p>
<p>I want to apply the following patch the convert template tool:</p>
<p>diff -u -r1.1 convert_template2config_php.pl</p>
<p>--- convert_template2config_php.pl      7 Dec 2007 12:22:34 -0000       1.1</p>
<p>+++ convert_template2config_php.pl      7 Dec 2007 12:58:43 -0000</p>
<p>@@ -110,6 +110,20 @@</p>
<p>        # update the script.</p>
<p>        s/\('true/true/;</p>
<p>        s/'=='TRUE'\)//;</p>
<p>+       if (/^\?>$/) {</p>
<p>+         print $config "//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
<p>+//</p>
<p>+// This is a generated file.  The source file is the template file</p>
<p>+// $metatemplates[$file_id] in the kolab cvs module kolabd.</p>
<p>+// The fullname of the source file is:</p>
<p>+// server/kolabd/templates/$metatemplates[$file_id]</p>
<p>+//</p>
<p>+// If you modify this file, please do not forget to modify the above mentioned</p>
<p>+// source file.</p>
<p>+//</p>
<p>+//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n";</p>
<p>+       }</p>
<p>+</p>
<p>        print $config $_;</p>
<p></p>
<p></p>
<p>Which results in the following message at the end of the resmgr.conf file:</p>
<p>//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
<p>//</p>
<p>// This is a generated file.  The source file is the template file</p>
<p>// resmgr.conf.template.in in the kolab cvs module kolabd.</p>
<p>// The fullname of the source file is:</p>
<p>// server/kolabd/templates/resmgr.conf.template.in</p>
<p>//</p>
<p>// If you modify this file, please do not forget to modify the above mentioned</p>
<p>// source file.</p>
<p>//</p>
<p>//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
<p>?></p>
<p></p>
<p>Is this text okay?</p>
<p></p>
<p>If this patch is applied the message at the end of resmgr.conf.template.in can be removed.</p>
<p></p>
<p>The template file freebusy.conf.template.in does not trigger the above question, because the "?>" at the end of the file is not present.  Is that a bug?</p>
<p></p>
<p>-- </p>
<p>Richard Bos</p>
<p>Without a home the journey is endless</p>
<p></p>
</body></html>