Mercurial > hg > xemacs-beta
comparison lib-src/tm-ps @ 4:b82b59fe008d r19-15b3
Import from CVS: tag r19-15b3
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:46:56 +0200 |
parents | |
children | 49a24b4fd526 |
comparison
equal
deleted
inserted
replaced
3:30df88044ec6 | 4:b82b59fe008d |
---|---|
1 #!/bin/sh - | |
2 # | |
3 # $Id: tm-ps,v 1.1.1.1 1996/12/18 03:52:12 steve Exp $ | |
4 # | |
5 # Copyright 1994, 1995, 1996 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 if [ "$TM_TMP_DIR" = "" ]; then | |
23 TM_TMP_DIR=/tmp | |
24 export TM_TMP_DIR | |
25 fi | |
26 if [ "$5" = "" ]; then | |
27 filename="$TM_TMP_DIR/mime$$.pln" | |
28 else | |
29 filename="$TM_TMP_DIR/$5" | |
30 fi | |
31 | |
32 case "$4" in | |
33 "play") | |
34 echo "$2; $3 -> $filename" | |
35 tmdecode $3 $1 $filename | |
36 ghostview $filename | |
37 trap 'rm -f $filename' 0 1 2 3 13 15 | |
38 ;; | |
39 "extract") | |
40 echo "$2; $3 -> $filename" | |
41 echo "extract to $filename" | |
42 tmdecode "$3" "$1" $filename | |
43 ;; | |
44 "print") | |
45 echo "$2; $3 ->" | |
46 tmdecode "$3" "$1" /dev/stdout | lpr | |
47 ;; | |
48 esac |