This commit was generated by cvs2svn to compensate for changes in r425,
[elisp/tm.git] / methods / tm-file
index 4433fab..bac4bfa 100755 (executable)
@@ -1,14 +1,19 @@
-#!/bin/csh -f
+#!/bin/sh -
+#
+# $Id: tm-file,v 3.0 1995/12/18 11:39:26 morioka Exp $
+#
 
-if (! $?TM_TMP_DIR) then
-    setenv TM_TMP_DIR /tmp
-endif
+if [ "$TM_TMP_DIR" = "" ]; then
+       TM_TMP_DIR=/tmp
+       export TM_TMP_DIR
+fi
 
-if( $5 == "" ) then
-       set filename="$TM_TMP_DIR/mime$$"
+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"