X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=methods%2Ftm-plain;h=d53741e9cbc871de26253600b981000a2b5b0ed4;hb=dd258a793c3c7c88ad91d59192ab55bbf1082a8f;hp=da0c14e98fc02486cdb728f7e07d77ddf304f869;hpb=aeca2910477d53331550ef6ce5e937d2c000f2ec;p=elisp%2Ftm.git diff --git a/methods/tm-plain b/methods/tm-plain index da0c14e..d53741e 100755 --- a/methods/tm-plain +++ b/methods/tm-plain @@ -1,4 +1,8 @@ -#!/bin/sh +#!/bin/sh - +# +# $Id: tm-plain,v 3.0 1995/12/18 11:37:12 morioka Exp $ +# + if [ "$TM_TMP_DIR" = "" ]; then TM_TMP_DIR=/tmp export TM_TMP_DIR @@ -9,20 +13,18 @@ else filename="$TM_TMP_DIR/$5" fi -echo "$2; $3 -> $filename" - -tmdecode $3 $1 $filename - case "$4" in "play") - cat $filename - /bin/rm $filename + echo "$2; $3 ->" + tmdecode "$3" "$1" /dev/stdout ;; "extract") + echo "$2; $3 -> $filename" echo "extract to $filename" + tmdecode "$3" "$1" $filename ;; "print") - txt2ps -n $filename | lpr - /bin/rm $filename + echo "$2; $3 ->" + tmdecode "$3" "$1" /dev/stdout | lpr ;; -esac +esac \ No newline at end of file