From bfdfb78e5c206233487df136fb1ad71f76cca838 Mon Sep 17 00:00:00 2001 From: Ronald Garcia Date: Fri, 17 Jan 2003 19:54:04 +0000 Subject: [PATCH] calls to "test" were using nonportable "-e" (bash-ism). Changed to -r. [SVN r16923] --- src/engine/build.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/engine/build.sh b/src/engine/build.sh index 222e9b0a9..c5a708e5c 100755 --- a/src/engine/build.sh +++ b/src/engine/build.sh @@ -59,7 +59,7 @@ Guess_Toolset () if test_uname Darwin ; then BOOST_JAM_TOOLSET=darwin elif test_path gcc ; then BOOST_JAM_TOOLSET=gcc elif test_path icc ; then BOOST_JAM_TOOLSET=intel-linux - elif test -e /opt/intel/compiler50/ia32/bin/iccvars.sh ; then + elif test -r /opt/intel/compiler50/ia32/bin/iccvars.sh ; then BOOST_JAM_TOOLSET=intel-linux BOOST_JAM_TOOLSET_ROOT=/opt/intel/compiler50/ia32/ elif test_path xlc ; then BOOST_JAM_TOOLSET=vacpp @@ -97,10 +97,10 @@ case $BOOST_JAM_TOOLSET in ;; intel-linux) - if test -e /opt/intel/compiler50/ia32/bin/iccvars.sh ; then + if test -r /opt/intel/compiler50/ia32/bin/iccvars.sh ; then BOOST_JAM_TOOLSET_ROOT=/opt/intel/compiler50/ia32/ fi - if test -e ${BOOST_JAM_TOOLSET_ROOT}bin/iccvars.sh ; then + if test -r ${BOOST_JAM_TOOLSET_ROOT}bin/iccvars.sh ; then . ${BOOST_JAM_TOOLSET_ROOT}bin/iccvars.sh fi BOOST_JAM_CC=icc @@ -163,13 +163,13 @@ BJAM_SOURCES="\ echo_run rm -rf bootstrap.$BOOST_JAM_TOOLSET echo_run mkdir bootstrap.$BOOST_JAM_TOOLSET -if test ! -e jamgram.y -o ! -e jamgramtab.h ; then +if test ! -r jamgram.y -o ! -r jamgramtab.h ; then echo_run ${BOOST_JAM_CC} ${BOOST_JAM_OPT_YYACC} ${YYACC_SOURCES} if test -x "./bootstrap.$BOOST_JAM_TOOLSET/yyacc0" ; then echo_run ./bootstrap.$BOOST_JAM_TOOLSET/yyacc0 jamgram.y jamgramtab.h jamgram.yy fi fi -if test ! -e jamgram.c -o ! -e jamgram.h ; then +if test ! -r jamgram.c -o ! -r jamgram.h ; then if test_path yacc ; then YACC="yacc -d" elif test_path bison ; then YACC="bison -y -d --yacc" fi @@ -177,7 +177,7 @@ if test ! -e jamgram.c -o ! -e jamgram.h ; then mv -f y.tab.c jamgram.c mv -f y.tab.h jamgram.h fi -if test ! -e jambase.c ; then +if test ! -r jambase.c ; then echo_run ${BOOST_JAM_CC} ${BOOST_JAM_OPT_MKJAMBASE} ${MKJAMBASE_SOURCES} if test -x "./bootstrap.$BOOST_JAM_TOOLSET/mkjambase0" ; then echo_run ./bootstrap.$BOOST_JAM_TOOLSET/mkjambase0 jambase.c Jambase