forked from essandess/Dada-Engine
-
Notifications
You must be signed in to change notification settings - Fork 1
/
dada
32 lines (28 loc) · 704 Bytes
/
dada
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
#!/bin/sh
# User interface/wrapper for the Dada Engine
# Author: acb
# Commenced: 14-7-1995
PBDIR="/usr/local/bin"
DADAROOT="/usr/local/lib/dada"
CPP="/usr/bin/cpp"
#CPP="/lib/cpp"
#CPPARGS="-lang-c++"
FILES=""
#PB="`dirname $0`/pb"
#INCLUDE="-I`dirname $0`/include -I$DADAROOT/include"
PB="${PBDIR}/pb"
INCLUDE="-I${DADAROOT}/include"
while test $# -gt 0
do
case $1 in
-D*) CPPARGS="$1 $CPPARGS";;
-o) PBARGS="$PBARGS $1 $2"; shift;;
-p) PBARGS="$PBARGS $1";;
-r) PBARGS="$PBARGS $1 $2"; shift;;
-s) PBARGS="$PBARGS $1 $2"; shift;;
-w) PBARGS="$PBARGS $1 $2"; shift;;
*) CPPARGS="$CPPARGS $1";;
esac
shift
done
($CPP $INCLUDE $CPPARGS 2>/dev/null) | $PB $PBARGS