From: Rafael L. <rla...@us...> - 2006-05-22 21:47:00
|
Update of /cvsroot/plplot/plplot/bindings/octave/PLplot In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18540/bindings/octave/PLplot Modified Files: figure.m Log Message: [for Orion Poplawski <or...@co...>] Updates the octave version check to allow for 2.X (X > 1) and X. (X>2) versions to be okay. Index: figure.m =================================================================== RCS file: /cvsroot/plplot/plplot/bindings/octave/PLplot/figure.m,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- figure.m 6 Sep 2004 20:17:30 -0000 1.22 +++ figure.m 22 May 2006 21:46:45 -0000 1.23 @@ -49,9 +49,10 @@ if (!exist("__pl") || !struct_contains (__pl,"inited")) v = split(version ,'.'); - if (! (str2num(v(1,:)) >= 2 && - str2num(v(2,:)) >= 1 && - str2num(v(3,:)) >= 57)) + if (! ((str2num(v(1,:)) > 2) || + (str2num(v(1,:)) == 2 && str2num(v(2,:)) > 1) || + (str2num(v(1,:)) == 2 && str2num(v(2,:)) == 1 && + str2num(v(3,:)) >= 57))) error("The PLplot-Octave scripts need an Octave version \n\ greater then or equal to 2.1.57.\n"); endif |