Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 69:804d1389bcd6 | 70:131b0175ea99 |
|---|---|
| 1 #!/bin/sh - | 1 #!/bin/sh - |
| 2 # | 2 # |
| 3 # $Id: tm-au,v 1.4 1997/02/02 05:04:53 steve Exp $ | 3 # $Id: tm-au,v 1.1.1.1 1996/12/18 22:42:33 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. | |
| 21 | |
| 22 PATH=${PATH:-/usr/bin:/bin}:`dirname $0 2>/dev/null`; export PATH | |
| 23 | 5 |
| 24 if [ "$TM_TMP_DIR" = "" ]; then | 6 if [ "$TM_TMP_DIR" = "" ]; then |
| 25 TM_TMP_DIR=/tmp | 7 TM_TMP_DIR=/tmp |
| 26 export TM_TMP_DIR | 8 export TM_TMP_DIR |
| 27 fi | 9 fi |
| 34 | 16 |
| 35 | 17 |
| 36 case "$4" in | 18 case "$4" in |
| 37 "play") | 19 "play") |
| 38 echo "$2; $3 ->" | 20 echo "$2; $3 ->" |
| 39 tmdecode $3 $1 $filename | |
| 40 if [ "$AUDIOSERVER" = "" ]; then | 21 if [ "$AUDIOSERVER" = "" ]; then |
| 41 case "`uname`" in | 22 if [ `uname` = "IRIX" ]; then |
| 42 IRIX ) sfplay $filename ;; | 23 tmdecode $3 $1 $filename |
| 43 OSF1 ) decsound -play $filename ;; | 24 sfplay $filename |
| 44 * ) cat $filename > /dev/audio ;; | 25 trap 'rm -f $filename' 0 1 2 3 13 15 |
| 45 esac | 26 else |
| 27 tmdecode $3 $1 /dev/audio | |
| 28 fi | |
| 46 else | 29 else |
| 47 autool -v 40 $filename | 30 tmdecode $3 $1 $filename |
| 31 autool -v 40 $filename | |
| 32 trap 'rm -f $filename' 0 1 2 3 13 15 | |
| 48 fi | 33 fi |
| 49 | |
| 50 trap 'rm -f $filename' 0 1 2 3 13 15 | |
| 51 ;; | 34 ;; |
| 52 "extract") | 35 "extract") |
| 53 echo "$2; $3 -> $filename" | 36 echo "$2; $3 -> $filename" |
| 54 echo "extract to $filename" | 37 echo "extract to $filename" |
| 55 tmdecode $3 $1 $filename | 38 tmdecode $3 $1 $filename |
