yann@495: Use printf instead of echo for some shells. yann@495: yann@495: http://www.cygwin.com/ml/libc-alpha/2005-02/msg00123.html yann@495: yann@495: This patch does not generate invalid csu/version-info.h which has yann@495: unterminating " line because some /bin/sh cannot parse correctly. The yann@495: previous discussion was: yann@495: yann@495: http://sources.redhat.com/ml/libc-alpha/2004-08/msg00129.html yann@495: http://sources.redhat.com/ml/libc-alpha/2004-08/msg00145.html yann@495: yann@495: This patch gets rid of all this issue because the conclusion of the yann@495: discussion was to use printf instead of echo. Roland, could you look yann@495: at it again? yann@495: yann@495: Regards, yann@495: -- gotom yann@495: yann@495: 2005-02-26 GOTO Masanori yann@495: yann@495: * csu/Makefile: Use printf instead of echo for some shells. yann@495: yann@495: Index: csu/Makefile yann@495: =================================================================== yann@495: RCS file: /cvs/glibc/libc/csu/Makefile,v yann@495: retrieving revision 1.75 yann@495: diff -u -p -r1.75 Makefile yann@495: --- glibc/csu/Makefile 3 Jan 2005 17:57:14 -0000 1.75 yann@495: +++ glibc.new/csu/Makefile 27 Feb 2005 01:17:49 -0000 yann@495: @@ -241,7 +241,7 @@ $(objpfx)version-info.h: $(common-objpfx yann@495: esac; \ yann@495: files="$(all-Banner-files)"; \ yann@495: if test -n "$$files"; then \ yann@495: - echo "\"Available extensions:\\n\""; \ yann@495: + printf '"Available extensions:\\n"\n'; \ yann@495: sed -e '/^#/d' -e 's/^[[:space:]]*/ /' \ yann@495: -e 's/^\(.*\)$$/\"\1\\n\"/' $$files; \ yann@495: fi) > $@T yann@495: