r25913: maybe some platforms have problems with echo -e
authorStefan Metzmacher <metze@samba.org>
Fri, 9 Nov 2007 09:26:32 +0000 (10:26 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:44:52 +0000 (05:44 +0100)
metze
(This used to be commit c9586b8ab34e8737cf87a642fbcc811edd0a6590)

source4/build/smb_build/makefile.pm

index 2dd1a9d7b34ede15723827f10533973c68df0d3e..1829c256b3b09b76ee4bb400d6cbbf9d624528d7 100644 (file)
@@ -352,7 +352,11 @@ bin/$ctx->{NAME}_init_module.c:
        \@echo Creating \$\@
        \@echo \"#include \\\"includes.h\\\"\" > \$\@
        \@echo \"$proto_fn;\" >> \$\@
-       \@echo -e \"_PUBLIC_ $init_fn \\n{\\n\\treturn $ctx->{INIT_FUNCTION}();\\n}\\n\" >> \$\@
+       \@echo \"_PUBLIC_ $init_fn\" >> \$\@
+       \@echo \"{\" >> \$\@
+       \@echo \"       return $ctx->{INIT_FUNCTION}();\" >> \$\@
+       \@echo \"}\" >> \$\@
+       \@echo \"\" >> \$\@
 __EOD__
 );
                $init_obj = "bin/$ctx->{NAME}_init_module.o";