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