annotate lib-src/tm-au @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents 0293115a14e9
children c0c698873ce1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
1 #!/bin/sh -
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
2 #
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
3 # $Id: tm-au,v 1.1.1.1 1996/12/18 22:42:33 steve Exp $
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
4 #
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 10
diff changeset
5
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
6 if [ "$TM_TMP_DIR" = "" ]; then
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
7 TM_TMP_DIR=/tmp
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
8 export TM_TMP_DIR
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
9 fi
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
10
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
11 if [ "$5" = "" ]; then
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
12 filename="$TM_TMP_DIR/mime$$.au"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
13 else
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
14 filename="$TM_TMP_DIR/$5"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
15 fi
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
16
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
17
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
18 case "$4" in
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
19 "play")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
20 echo "$2; $3 ->"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
21 if [ "$AUDIOSERVER" = "" ]; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
22 if [ `uname` = "IRIX" ]; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
23 tmdecode $3 $1 $filename
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
24 sfplay $filename
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
25 trap 'rm -f $filename' 0 1 2 3 13 15
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
26 else
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
27 tmdecode $3 $1 /dev/audio
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
28 fi
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
29 else
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
30 tmdecode $3 $1 $filename
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
31 autool -v 40 $filename
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 16
diff changeset
32 trap 'rm -f $filename' 0 1 2 3 13 15
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
33 fi
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
34 ;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
35 "extract")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
36 echo "$2; $3 -> $filename"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
37 echo "extract to $filename"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
38 tmdecode $3 $1 $filename
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
39 ;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
40 esac