From 130abd17283dd366f94230c6af8f4419ce62fdd5 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Wed, 1 Sep 2004 19:51:42 +0200 Subject: [PATCH] mk-sik-inc.sh: Use a temporary string instead of 'echo -n'. * mk-sik-inc.sh: Use a temporary string instead of 'echo -n'. * mk-srk-inc.sh: Likewise. From-SVN: r86919 --- libgfortran/ChangeLog | 5 +++++ libgfortran/mk-sik-inc.sh | 7 ++++--- libgfortran/mk-srk-inc.sh | 7 ++++--- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 891c74ec9dd..c467b8c9959 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,8 @@ +2004-09-01 Eric Botcazou + + * mk-sik-inc.sh: Use a temporary string instead of 'echo -n'. + * mk-srk-inc.sh: Likewise. + 2004-09-01 Paul Brook * runtime/error.c (generate_error): Set both iostat and diff --git a/libgfortran/mk-sik-inc.sh b/libgfortran/mk-sik-inc.sh index 536eda70c88..a2f29e1e30a 100755 --- a/libgfortran/mk-sik-inc.sh +++ b/libgfortran/mk-sik-inc.sh @@ -20,12 +20,13 @@ echo " type (int_info), parameter :: int_infos(c) = (/ &" i=0 for k in $kinds; do - echo -n " int_info ($k, range(0_$k))" + # echo -n is not portable + str=" int_info ($k, range(0_$k))" i=`expr $i + 1` if [ $i -lt $c ]; then - echo ", &" + echo "$str, &" else - echo " /)" + echo "$str /)" fi done diff --git a/libgfortran/mk-srk-inc.sh b/libgfortran/mk-srk-inc.sh index 47046985b00..d036d682679 100755 --- a/libgfortran/mk-srk-inc.sh +++ b/libgfortran/mk-srk-inc.sh @@ -20,12 +20,13 @@ echo " type (real_info), parameter :: real_infos(c) = (/ &" i=0 for k in $kinds; do - echo -n " real_info ($k, precision(0.0_$k), range(0.0_$k))" + # echo -n is not portable + str=" real_info ($k, precision(0.0_$k), range(0.0_$k))" i=`expr $i + 1` if [ $i -lt $c ]; then - echo ", &" + echo "$str, &" else - echo " /)" + echo "$str /)" fi done -- 2.30.2