File: externalfilter

package info (click to toggle)
dxsamples 4.4.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 26,340 kB
  • sloc: ansic: 10,079; sh: 8,445; java: 1,772; makefile: 1,102
file content (60 lines) | stat: -rw-r--r-- 990 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/sh 
#
# A shell script to start the correct external filter depending upon
# the architecture that is being used. 
#
# This is referenced by the ImportExternalFilter.net example.
#
DIR=${DXEXECROOT-${DXROOT-/usr/lpp/dx}}/samples/data
case "`uname -s`" in
  AIX)		# RS/6000 or RS/6000 console for PVS
    if [ -f /dev/pvs0 ]; then
    	os $DIR/externalfilter_ibmpvs $*
    else
    	$DIR/externalfilter_ibm6000 $*
    fi
    ;;

  IRIX)		# Indigo

    $DIR/externalfilter_sgi $*
    ;;

  SunOS)	# Sun 4

    case `uname -r` in
	4*)
	    $DIR/externalfilter_sun4 $*
	    ;;
	*)
	    $DIR/externalfilter_solaris $*
	    ;;
    esac
    ;;

  HP-UX)	# HP700

    $DIR/externalfilter_hp700 $*
    ;;

  dgux)
    $DIR/externalfilter_aviion $*
    ;;

  OSF1)
    $DIR/externalfilter_alphax $*
    ;;
  
  *) 		# Try machine type
    case "`uname -m`" in 
      IP7) 	# SGI	

	$DIR/externalfilter_sgi $* ;; 

      *) 
        echo unknown machine type
        exit 1
	;;

    esac 
esac