File: 21_octave-signal.dpatch

package info (click to toggle)
pfstools 2.2.0-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,548 kB
  • sloc: cpp: 26,364; javascript: 3,814; ansic: 999; sh: 180; python: 65; makefile: 47
file content (21 lines) | stat: -rw-r--r-- 515 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh /usr/share/dpatch/dpatch-run
## octave-signal.dpatch by Sebastian Harl <tokkee@debian.org>
##
## DP: pfsstat: Bail out with an error if octave-signal is not available.

@DPATCH@

--- a/src/octave/pfsstat
+++ b/src/octave/pfsstat
@@ -33,6 +33,11 @@
   error( "Expecting no parameters" ); 
 endif
 
+if( 2 != exist( 'gausswin' ) )
+  error( "%s requires the 'signal' package - please install octave-signal\n", \
+      program_name () );
+endif
+
 firstFrame = true;
 while( true )
   pin = pfsget( pin );