projects
/
elisp
/
tm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
tm 7.38.
[elisp/tm.git]
/
methods
/
csh
/
tmdecode
1
#!/bin/csh -f
2
3
switch ( $1 )
4
case "7bit":
5
case "8bit":
6
case "binary":
7
/bin/cp $2 $3
8
breaksw
9
case "base64":
10
#decode-b < $2 > $3
11
mmencode -u $2 > $3
12
breaksw
13
case "quoted-printable":
14
mmencode -q -u $2 > $3
15
breaksw
16
case "x-uue":
17
case "x-uuencode":
18
pushd $TM_TMP_DIR
19
uudecode $2
20
popd
21
breaksw
22
default:
23
echo "unknown encoding"
24
exit -1
25
endsw
26
27
/bin/rm $2
28
echo "$2 was removed."