annotate lib-src/tm-plain @ 12:bcdc7deadc19 r19-15b7

Import from CVS: tag r19-15b7
author cvs
date Mon, 13 Aug 2007 08:48:16 +0200
parents 49a24b4fd526
children 0293115a14e9
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 #
10
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 4
diff changeset
3 # $Id: tm-plain,v 1.2 1996/12/29 00:14:55 steve Exp $
4
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
4 #
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
5
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 if [ "$5" = "" ]; then
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
11 filename="$TM_TMP_DIR/mime$$.pln"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
12 else
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
13 filename="$TM_TMP_DIR/$5"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
14 fi
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
15
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
16 case "$4" in
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
17 "play")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
18 echo "$2; $3 ->"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
19 tmdecode "$3" "$1" /dev/stdout
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
20 ;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
21 "extract")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
22 echo "$2; $3 -> $filename"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
23 echo "extract to $filename"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
24 tmdecode "$3" "$1" $filename
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
25 ;;
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
26 "print")
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
27 echo "$2; $3 ->"
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
28 tmdecode "$3" "$1" /dev/stdout | lpr
b82b59fe008d Import from CVS: tag r19-15b3
cvs
parents:
diff changeset
29 ;;
10
49a24b4fd526 Import from CVS: tag r19-15b6
cvs
parents: 4
diff changeset
30 esac