aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-08-20 20:12:43 +0000
committerRoland McGrath <roland@gnu.org>2004-08-20 20:12:43 +0000
commite7f4d2bf43c266b2219a14b783b55df423ce5246 (patch)
treec1fd482152ac7507f4b8db075594a3293f2a6948
parenta24c5ac46258a0fff7a00c501440ba49381a2338 (diff)
downloadglibc-e7f4d2bf43c266b2219a14b783b55df423ce5246.zip
glibc-e7f4d2bf43c266b2219a14b783b55df423ce5246.tar.gz
glibc-e7f4d2bf43c266b2219a14b783b55df423ce5246.tar.bz2
2004-08-20 Roland McGrath <roland@frob.com>
* csu/Makefile ($(objpfx)version-info.h): Use printf in place of echo -e for POSIX.2 portability. Reported by Paul Jarc <prj@po.cwru.edu>.
-rw-r--r--csu/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/csu/Makefile b/csu/Makefile
index f400a58..fbbfe00 100644
--- a/csu/Makefile
+++ b/csu/Makefile
@@ -216,7 +216,9 @@ all-Banner-files = $(wildcard $(addsuffix /Banner, \
$(objpfx)version-info.h: $(common-objpfx)config.make $(all-Banner-files)
$(make-target-directory)
(case $(config-os) in \
- linux*) version=`(echo -e "#include <linux/version.h>\nUTS_RELEASE"\
+ linux*) version=`(printf '%s\n%s\n' \
+ '#include <linux/version.h>' \
+ UTS_RELEASE \
| $(CC) $(CPPFLAGS) -E -P - -DNOT_IN_libc=1 | \
sed -e 's/"\([^"]*\)".*/\1/p' -e d) 2>/dev/null`;\
if [ -z "$$version" ]; then \
@@ -231,8 +233,8 @@ $(objpfx)version-info.h: $(common-objpfx)config.make $(all-Banner-files)
if [ -z "$$os" ]; then \
os=Linux; \
fi; \
- echo "\"Compiled on a $$os $$version system" \
- "on `date +%Y-%m-%d`.\\n\"" ;; \
+ printf '"Compiled on a %s %s system on %s.\\n"\n' \
+ "$$os" "$$version" "`date +%Y-%m-%d`";; \
*) ;; \
esac; \
files="$(all-Banner-files)"; \