X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=methods%2Ftm-file;fp=methods%2Ftm-file;h=4f85b7c12e0e4219fa6b1aa76991880aa42eec52;hb=9591c13af0bb055acd6e6ac0ee8a36b97c504d65;hp=4433fab0fcb54acaaaeb579ee75789164bba5890;hpb=92663a97ee2860f29f0a33ec71246bc9a9416ea3;p=elisp%2Ftm.git diff --git a/methods/tm-file b/methods/tm-file index 4433fab..4f85b7c 100755 --- a/methods/tm-file +++ b/methods/tm-file @@ -1,14 +1,13 @@ -#!/bin/csh -f - -if (! $?TM_TMP_DIR) then - setenv TM_TMP_DIR /tmp -endif - -if( $5 == "" ) then - set filename="$TM_TMP_DIR/mime$$" +#!/bin/sh +if [ "$TM_TMP_DIR" = "" ]; then + TM_TMP_DIR=/tmp + export TM_TMP_DIR +fi +if [ "$5" = "" ]; then + filename="$TM_TMP_DIR/mime$$" else - set filename = $TM_TMP_DIR/$5 -endif + filename="$TM_TMP_DIR/$5" +fi echo "$2; $3 -> $filename"