Mercurial > hg > xemacs-beta
comparison lib-src/tm-au @ 16:0293115a14e9 r19-15b91
Import from CVS: tag r19-15b91
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:49:20 +0200 |
parents | 9ee227acff29 |
children | 131b0175ea99 |
comparison
equal
deleted
inserted
replaced
15:ad457d5f7d04 | 16:0293115a14e9 |
---|---|
1 #!/bin/sh - | 1 #!/bin/sh - |
2 # | 2 # |
3 # $Id: tm-au,v 1.3 1997/01/11 22:09:59 steve Exp $ | 3 # $Id: tm-au,v 1.4 1997/02/02 05:04:53 steve Exp $ |
4 # | 4 # |
5 # Copyright 1994,1995,1996,1997 Free Software Foundation, Inc. | |
6 | |
7 # This program is free software; you can redistribute it and/or modify | |
8 # it under the terms of the GNU General Public License as published by | |
9 # the Free Software Foundation; either version 2, or (at your option) | |
10 # any later version. | |
11 # | |
12 # This program is distributed in the hope that it will be useful, | |
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 # GNU General Public License for more details. | |
16 # | |
17 # You should have received a copy of the GNU General Public License | |
18 # along with GNU Emacs; see the file COPYING. If not, write to the | |
19 # Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 # Boston, MA 02111-1307, USA. | |
5 | 21 |
6 PATH=${PATH:-/usr/bin:/bin}:`dirname $0 2>/dev/null`; export PATH | 22 PATH=${PATH:-/usr/bin:/bin}:`dirname $0 2>/dev/null`; export PATH |
7 | 23 |
8 if [ "$TM_TMP_DIR" = "" ]; then | 24 if [ "$TM_TMP_DIR" = "" ]; then |
9 TM_TMP_DIR=/tmp | 25 TM_TMP_DIR=/tmp |
20 case "$4" in | 36 case "$4" in |
21 "play") | 37 "play") |
22 echo "$2; $3 ->" | 38 echo "$2; $3 ->" |
23 tmdecode $3 $1 $filename | 39 tmdecode $3 $1 $filename |
24 if [ "$AUDIOSERVER" = "" ]; then | 40 if [ "$AUDIOSERVER" = "" ]; then |
25 if [ `uname` = "IRIX" ]; then | 41 case "`uname`" in |
26 sfplay $filename | 42 IRIX ) sfplay $filename ;; |
27 else | 43 OSF1 ) decsound -play $filename ;; |
28 cat $filename > /dev/audio | 44 * ) cat $filename > /dev/audio ;; |
29 fi | 45 esac |
30 else | 46 else |
31 autool -v 40 $filename | 47 autool -v 40 $filename |
32 fi | 48 fi |
49 | |
33 trap 'rm -f $filename' 0 1 2 3 13 15 | 50 trap 'rm -f $filename' 0 1 2 3 13 15 |
34 ;; | 51 ;; |
35 "extract") | 52 "extract") |
36 echo "$2; $3 -> $filename" | 53 echo "$2; $3 -> $filename" |
37 echo "extract to $filename" | 54 echo "extract to $filename" |