diff miscellany/compress-4.0/tarmail @ 0:bce86c4163a3

Initial revision
author kono
date Mon, 18 Apr 2005 23:46:02 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/miscellany/compress-4.0/tarmail	Mon Apr 18 23:46:02 2005 +0900
@@ -0,0 +1,13 @@
+if test $# -lt 3; then
+  echo "Usage: tarmail mailpath \"subject-string\" directory-or-file(s)"
+  exit
+else
+  mailpath=$1
+  echo "mailpath = $mailpath"
+  shift
+  subject="$1"
+  echo "subject-string = $subject"
+  shift
+  echo files = $*
+  tar cvf - $* | compress | btoa | mail -s "$subject" $mailpath
+fi