Mercurial > hg > xemacs-beta
comparison lib-src/tm-au @ 86:364816949b59 r20-0b93
Import from CVS: tag r20-0b93
| author | cvs |
|---|---|
| date | Mon, 13 Aug 2007 09:09:02 +0200 |
| parents | 6a378aca36af |
| children | 0d2f883870bc |
comparison
equal
deleted
inserted
replaced
| 85:c661705957e0 | 86:364816949b59 |
|---|---|
| 1 #!/bin/sh - | 1 #!/bin/sh - |
| 2 # | 2 # |
| 3 # $Id: tm-au,v 1.4 1997/01/23 05:29:22 steve Exp $ | 3 # $Id: tm-au,v 1.5 1997/01/30 02:22:29 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 case "`uname`" in | 41 if [ `uname` = "IRIX" ]; then |
| 26 IRIX ) sfplay $filename ;; | 42 sfplay $filename |
| 27 OSF1 ) decsound -play $filename ;; | 43 else |
| 28 * ) cat $filename > /dev/audio ;; | 44 cat $filename > /dev/audio |
| 29 esac | 45 fi |
| 30 else | 46 else |
| 31 autool -v 40 $filename | 47 autool -v 40 $filename |
| 32 fi | 48 fi |
| 33 | |
| 34 trap 'rm -f $filename' 0 1 2 3 13 15 | 49 trap 'rm -f $filename' 0 1 2 3 13 15 |
| 35 ;; | 50 ;; |
| 36 "extract") | 51 "extract") |
| 37 echo "$2; $3 -> $filename" | 52 echo "$2; $3 -> $filename" |
| 38 echo "extract to $filename" | 53 echo "extract to $filename" |
