diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2004-09-01 19:51:42 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2004-09-01 17:51:42 +0000 |
commit | 130abd17283dd366f94230c6af8f4419ce62fdd5 (patch) | |
tree | 3c11489a29752196cf32017568ec90a070af67a3 /libgfortran | |
parent | 156a126c4fdec4d8b86e458318475bf5a17cb0d2 (diff) | |
download | gcc-130abd17283dd366f94230c6af8f4419ce62fdd5.tar.gz |
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
Diffstat (limited to 'libgfortran')
-rw-r--r-- | libgfortran/ChangeLog | 5 | ||||
-rwxr-xr-x | libgfortran/mk-sik-inc.sh | 7 | ||||
-rwxr-xr-x | 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 <ebotcazou@libertysurf.fr> + + * mk-sik-inc.sh: Use a temporary string instead of 'echo -n'. + * mk-srk-inc.sh: Likewise. + 2004-09-01 Paul Brook <paul@codesourcery.com> * 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 |