From 9ec20f9888ded5ef9c21f91af26e492c958784b9 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 7 Jan 2010 02:55:15 -0500 Subject: Make build system more bourne-compatible. --- Makefile.am | 7 ++++++- tests/dimension/strings.sh | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index a4069dd..1188e78 100644 --- a/Makefile.am +++ b/Makefile.am @@ -34,7 +34,12 @@ pgo: $(MAKE) $(AM_MAKEFLAGS) -C libdimension libdimension-pgo.la && \ $(MAKE) $(AM_MAKEFLAGS) -C tests/libdimension check; \ fi - @rename _pgo_la _la $$(find $(top_builddir)/libdimension/pgo/.libs/) + @for pgo in $(top_builddir)/libdimension/pgo/.libs/*; do \ + replacement="$${pgo/_pgo_la/_la}"; \ + if [ "$$pgo" != "$$replacement" ]; then \ + mv "$$pgo" "$$replacement"; \ + fi \ + done all-recursive check-recursive install-recursive installcheck-recursive distdir: pgo diff --git a/tests/dimension/strings.sh b/tests/dimension/strings.sh index 58e0751..eba9f0f 100755 --- a/tests/dimension/strings.sh +++ b/tests/dimension/strings.sh @@ -20,7 +20,7 @@ ######################################################################### strings=$(${top_builddir}/dimension/dimension --tokenize ${srcdir}/strings.pov) -strings_exp=$(echo -e "((string \"This is a string with escape sequences: \a\b\f\n\r\t!#\v\\\'\"\"))") +strings_exp=$(/bin/echo -e "((string \"This is a string with escape sequences: \a\b\f\n\r\t!#\v\\\'\"\"))") if [ "$strings" != "$strings_exp" ]; then echo "strings.pov tokenized as \"$strings\"" >&2 -- cgit v1.2.3