-echo -e "/*" > $C_FILE
-echo -e " * $C_FILE" >> $C_FILE
-echo -e " * Auto generated by mk_modules_init.sh DO NOT EDIT THIS FILE" >> $C_FILE
-echo -e " */\n\n\n" >> $C_FILE
-
-#echo -e "#include \"sysdep.h\"\n" >> $C_FILE
-echo -e "#include <stdlib.h>\n" >> $C_FILE
-#echo -e "#include <ctype.h>\n" >> $C_FILE
-#echo -e "#include \"citadel.h\"\n" >> $C_FILE
-echo -e "#include \"modules_init.h\"\n" >> $C_FILE
-echo -e "#include \"sysdep_decls.h\"\n" >> $C_FILE
-echo -e "\n\n\n" >> $C_FILE
-echo -e "void LogPrintMessages(long err);" >> $C_FILE
-echo -e "static long DetailErrorFlags;" >> $C_FILE
-echo -e "\n\n\n" >> $C_FILE
-
-echo -e "void initialise_modules (void)" >> $C_FILE
-echo -e "{" >> $C_FILE
-echo -e "\tlong filter;\n\n" >> $C_FILE
-echo -e -n "\t" >> $C_FILE
-echo -E "lprintf(CTDL_INFO, \"New citadel module init proceedure.\n\");" >> $C_FILE
+cat <<EOF >$C_FILE
+/*
+ * $C_FILE
+ * Auto generated by mk_modules_init.sh DO NOT EDIT THIS FILE
+ */
+
+
+
+#include "sysdep.h"
+#include <stdlib.h>
+#include <time.h>
+#include <ctype.h>
+#include <stdio.h>
+#include "citadel.h"
+#include "modules_init.h"
+#include "sysdep_decls.h"
+
+
+void LogPrintMessages(long err);
+extern long DetailErrorFlags;
+
+
+
+void initialise_modules (void)
+{
+ long filter;
+ nSizErrmsg = 0;
+
+ lprintf (CTDL_INFO, "New citadel module init proceedure.\n");
+EOF
+