Package: scilab-bin Version: 4.1.2-5 Filename: pool/non-free/s/scilab/scilab-bin_4.1.2-5_i386.deb Found error in /usr/lib/scilab-4.1.2/bin/scilink: $ grep -A5 -B5 /tmp/ /usr/lib/scilab-4.1.2/bin/scilink SCI=$1 export SCI shift LOCALPOS=`pwd` cd $SCI make show | grep -v make > /tmp/SciLink$$1 sed -e "s+routines/default+\$SD+g" -e "s+libs+\$SL+g" -e "s+./pvm3+\$SPVM+g" /tmp/SciLink$$1 > /tmp/SciLink$$2 for i in $* do x=`basename $i` sed "s+\$SD/$x++g" /tmp/SciLink$$2 > /tmp/SciLink$$3 rm -f /tmp/SciLink$$2 mv /tmp/SciLink$$3 /tmp/SciLink$$2 done echo "#!/bin/sh" > /tmp/SciLink$$3 echo SCI=$SCI >> /tmp/SciLink$$3 echo "SD=\$SCI/routines/default" >> /tmp/SciLink$$3 echo "SPVM=\$SCI/pvm3" >> /tmp/SciLink$$3 echo "SL=\$SCI/libs" >> /tmp/SciLink$$3 echo "LOCAL=\"$*\"" >> /tmp/SciLink$$3 sed -e "s+\$SL+ \$LOCAL \$SL+" -e "s+show+scilex+g" /tmp/SciLink$$2 >> /tmp/SciLink$$3 cd $LOCALPOS mv /tmp/SciLink$$3 Script chmod +x Script echo "Linking a new Scilab with " $* ./Script echo "I've created : scilex and scilab which uses that scilex" sed -e "s+\$SCI/bin/scilex+`pwd`/scilex+g" $SCI/bin/scilab > scilab chmod +x scilab #rm -f /tmp/SciLink* Found error in /usr/lib/scilab-4.1.2/util/scidoc: $ grep -A5 -B5 /tmp/ /usr/lib/scilab-4.1.2/util/scidoc # Copyright INRIA echo ------------------- File $2-------------------- SCI=$1 export SCI if [ -f $3 ]; then rm $3;fi; trap "rm -f /tmp/$2.$$ /tmp/$2.$$.res /tmp/$2.$$.err /tmp/$2.$$.diff\ ;exit 1" 1 2 13 15 echo "clear;lines(0);deff('[]=bugmes()','write(%io(2),''error on test'')');\ diary('$3');driver('Pos');" >> /tmp/$2.$$ ; sed -e "s/pause,end/bugmes();quit;end/" \ -e "s/halt()//" \ $2 >> /tmp/$2.$$ ; echo "diary(0);xend();quit;quit;quit;quit;quit;quit;" >> /tmp/$2.$$ ; ($SCI/bin/scilex -nw < /tmp/$2.$$ > /tmp/$2.$$.res ) 2> /tmp/$2.$$.err ; sed -e "s/ \.[0-9]/0&/g" -e "s/0 \./0./g" -e "s/E+/D+/g" -e "s/E-/D-/g" -e "s/-\./-0\./g" $3 > $3.n grep -v "xinit(" $3.n | grep -v "diary(" | grep -v "exec(" > $3 rm -f $3.n if ( grep error /tmp/$2.$$.res > /dev/null ) ; then if [ $# != 4 ]; then echo "ERROR DETECTED while executing $2" ; fi; fi; echo ---------------------------------------------------------- rm -f /tmp/$2.$$ /tmp/$2.$$.res /tmp/$2.$$.err /tmp/$2.$$.diff exit 0 Found error in /usr/lib/scilab-4.1.2/util/scidem: $ grep -A5 -B5 /tmp/ /usr/lib/scilab-4.1.2/util/scidem # Copyright INRIA echo ------------------- File $2-------------------- SCI1=$1 if [ -f $3 ]; then rm $3;fi; trap "rm -f /tmp/$2.$$ /tmp/$2.$$.res /tmp/$2.$$.err /tmp/$2.$$.diff\ ;exit 1" 1 2 13 15 echo "clear;lines(0);deff('[]=bugmes()','write(%io(2),''error on test'')');\ diary('$3');driver('Pos');" >> /tmp/$2.$$ ; sed -e "s/pause,end/bugmes();quit;end/" \ -e "s/halt()//" \ $2 >> /tmp/$2.$$ ; echo "diary(0);xend();exit;" >> /tmp/$2.$$ ; ($SCI1/bin/scilab -nwni < /tmp/$2.$$ > /tmp/$2.$$.res ) 2> /tmp/$2.$$.err ; sed -e "s/ \./0\./g" -e "s/E+/D+/g" -e "s/E-/D-/g" -e "s/-\./-0\./g" -e "s/^-->//g" -e "s/^-1->//g" $3 > $3.n grep -v "xinit(" $3.n | grep -v "diary(" | grep -v "exec(" > $3 rm -f $3.n if ( grep " error" /tmp/$2.$$.res > /dev/null ) ; then if [ $# != 4 ]; then echo "Test failed ERROR DETECTED while executing $2" ; else if (grep "$4" /tmp/$2.$$.res > /dev/null ) ; then echo Test skipped ; else echo "Test failed ERROR DETECTED while executing $2" ; fi; fi; else if [ -f $3.ref ];then if ( diff -w $3 $3.ref > /tmp/$2.$$.diff ) ; then echo Test passed ; else echo Test Failed SEE : diff -w $3 $3.ref ; fi; fi; fi; echo ---------------------------------------------------------- #rm -f /tmp/$2.$$ /tmp/$2.$$.res /tmp/$2.$$.err /tmp/$2.$$.diff exit 0