From 4af17bffbefa16868649ed8ccf604abe060f2a6b Mon Sep 17 00:00:00 2001 From: Ben Elliston Date: Mon, 20 Sep 1999 12:39:46 +0000 Subject: [PATCH] 1999-09-20 Ben Elliston * autoheader.sh: Bourne shell compatibility fix. From Pavel Roskin . --- ChangeLog | 5 +++++ autoheader.in | 6 ++++-- autoheader.sh | 6 ++++-- bin/autoheader.in | 6 ++++-- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 88e31597..c9decd45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-09-20 Ben Elliston + + * autoheader.sh: Bourne shell compatibility fix. From Pavel Roskin + . + 1999-09-17 Ben Elliston * config.guess: Detect QNX version 4. diff --git a/autoheader.in b/autoheader.in index ebfb93c7..f4cc22a6 100644 --- a/autoheader.in +++ b/autoheader.in @@ -56,6 +56,8 @@ case "${M4}" in test -f "${M4}" || M4=m4 ;; esac +ac_LF_and_DOT="`echo; echo .`" + localdir=. show_version=no @@ -213,7 +215,7 @@ $syms EOF fgrep -f $fgrep_tmp rm -f $fgrep_tmp) | - tr @. "`echo`." + tr @. "$ac_LF_and_DOT" # We use echo to avoid assuming a particular line-breaking character. # The extra dot is to prevent the shell from consuming trailing # line-breaks from the sub-command output. A line-break within @@ -222,7 +224,7 @@ EOF # would break. fi -echo "$types" | tr ,. "`echo`." | sort | uniq | while read ctype; do +echo "$types" | tr ,. "$ac_LF_and_DOT" | sort | uniq | while read ctype; do test -z "$ctype" && continue sym="`echo "${ctype}" | tr 'abcdefghijklmnopqrstuvwxyz *' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_P'`" echo " diff --git a/autoheader.sh b/autoheader.sh index ebfb93c7..f4cc22a6 100644 --- a/autoheader.sh +++ b/autoheader.sh @@ -56,6 +56,8 @@ case "${M4}" in test -f "${M4}" || M4=m4 ;; esac +ac_LF_and_DOT="`echo; echo .`" + localdir=. show_version=no @@ -213,7 +215,7 @@ $syms EOF fgrep -f $fgrep_tmp rm -f $fgrep_tmp) | - tr @. "`echo`." + tr @. "$ac_LF_and_DOT" # We use echo to avoid assuming a particular line-breaking character. # The extra dot is to prevent the shell from consuming trailing # line-breaks from the sub-command output. A line-break within @@ -222,7 +224,7 @@ EOF # would break. fi -echo "$types" | tr ,. "`echo`." | sort | uniq | while read ctype; do +echo "$types" | tr ,. "$ac_LF_and_DOT" | sort | uniq | while read ctype; do test -z "$ctype" && continue sym="`echo "${ctype}" | tr 'abcdefghijklmnopqrstuvwxyz *' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_P'`" echo " diff --git a/bin/autoheader.in b/bin/autoheader.in index ebfb93c7..f4cc22a6 100644 --- a/bin/autoheader.in +++ b/bin/autoheader.in @@ -56,6 +56,8 @@ case "${M4}" in test -f "${M4}" || M4=m4 ;; esac +ac_LF_and_DOT="`echo; echo .`" + localdir=. show_version=no @@ -213,7 +215,7 @@ $syms EOF fgrep -f $fgrep_tmp rm -f $fgrep_tmp) | - tr @. "`echo`." + tr @. "$ac_LF_and_DOT" # We use echo to avoid assuming a particular line-breaking character. # The extra dot is to prevent the shell from consuming trailing # line-breaks from the sub-command output. A line-break within @@ -222,7 +224,7 @@ EOF # would break. fi -echo "$types" | tr ,. "`echo`." | sort | uniq | while read ctype; do +echo "$types" | tr ,. "$ac_LF_and_DOT" | sort | uniq | while read ctype; do test -z "$ctype" && continue sym="`echo "${ctype}" | tr 'abcdefghijklmnopqrstuvwxyz *' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_P'`" echo "