projects
/
elisp
/
tm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
tm 6.8
[elisp/tm.git]
/
methods
/
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
pushd $TM_TMP_DIR
18
uudecode $2
19
popd
20
breaksw
21
default:
22
echo "unknown encoding"
23
exit -1
24
endsw
25
26
/bin/rm $2
27
echo "$2 was removed."