1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 50_check-for-octave2.1.dpatch by Rafael Laboissiere <rafael@debian.org>
4
## DP: Abort toggle_plplot_use if not using Octave 2.1
8
--- plplot-5.6.0.rc1.5.6.1.orig/bindings/octave/PLplot/toggle_plplot_use.m
9
+++ plplot-5.6.0.rc1.5.6.1/bindings/octave/PLplot/toggle_plplot_use.m
14
+## Abort if not using Octave 2.1
15
+if (split (version , '.') (1, 1) != '2' || split (version , '.') (2, 1) != '1')
16
+ error ("This version of octave-plplot only works with Octave 2.1\n");
19
if ! exist ("use_plplot_state")
20
global use_plplot_state
21
use_plplot_state = "on";