~ubuntu-branches/ubuntu/wily/mercurial/wily

« back to all changes in this revision

Viewing changes to contrib/plan9/9mail

  • Committer: Package Import Robot
  • Author(s): Javi Merino
  • Date: 2013-11-01 23:19:57 UTC
  • mfrom: (1.2.38) (9.1.16 experimental)
  • Revision ID: package-import@ubuntu.com-20131101231957-hs70pwpinavlz3t6
Tags: 2.8-1
* New upstream release
* Fix mercurial-git and hgsubversion autopkgtest by loading the
  appropriate extension
* Bump standards-version to 3.9.5 (no change needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/rc
 
2
# 9mail - Mercurial email wrapper for upas/marshal
 
3
 
 
4
fn usage {
 
5
        echo >[1=2] usage: mercurial/9mail -f from to [cc]
 
6
        exit usage
 
7
}
 
8
 
 
9
from=()
 
10
cc=()
 
11
to=()
 
12
 
 
13
switch($1){
 
14
case -f
 
15
        from=$2
 
16
case *
 
17
        usage
 
18
}
 
19
 
 
20
to=($3)
 
21
if(~ $#* 4)
 
22
        cc=(-C $4)
 
23
 
 
24
upasname=$from
 
25
upas/marshal $cc $to
 
26