Code

patches: Added octave-signal.dpatch.
[pkg-pfstools.git] / debian / patches / octave-signal.dpatch
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## octave-signal.dpatch by Sebastian Harl <tokkee@debian.org>
3 ##
4 ## DP: pfsstat: Bail out with an error if octave-signal is not available.
6 @DPATCH@
8 --- a/src/octave/pfsstat
9 +++ b/src/octave/pfsstat
10 @@ -33,6 +33,11 @@
11    error( "Expecting no parameters" ); 
12  endif
13  
14 +if( 2 != exist( 'gausswin' ) )
15 +  error( "%s requires the 'signal' package - please install octave-signal\n", \
16 +      program_name () );
17 +endif
18 +
19  firstFrame = true;
20  while( true )
21    pin = pfsget( pin );