mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
329 lines
8.2 KiB
Plaintext
329 lines
8.2 KiB
Plaintext
|
shell_patterns=0
|
|||
|
+ ! t t
|
|||
|
@ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
CMD=%{<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>}
|
|||
|
$CMD %f
|
|||
|
|
|||
|
+ t t
|
|||
|
@ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
set %t; CMD=%{<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>}
|
|||
|
while [ -n "$1" ]; do
|
|||
|
$CMD "$1"
|
|||
|
shift
|
|||
|
done
|
|||
|
|
|||
|
|
|||
|
0 <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
${EDITOR-vi} /tmp/mail.$$
|
|||
|
test -r /tmp/mail.$$ && mail root < /tmp/mail.$$
|
|||
|
rm -f /tmp/mail.$$
|
|||
|
|
|||
|
=+ f \.1$ | f \.3$ | f \.4$ | f \.5$ | f \.6$ | f \.7$ | f \.8$ | f \.man$ & t r
|
|||
|
1 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> roff -man
|
|||
|
nroff -man %f | less
|
|||
|
|
|||
|
2 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> info
|
|||
|
info
|
|||
|
|
|||
|
= t d
|
|||
|
3 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (tar.gz)
|
|||
|
Pwd=`basename "%d" /`
|
|||
|
echo -n "<22><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>) [$Pwd]: "
|
|||
|
read tar
|
|||
|
if [ "$tar"x = x ]; then tar="$Pwd"; fi
|
|||
|
cd .. && \
|
|||
|
tar cf - "$Pwd" | gzip -f9 > "$tar.tar.gz" && \
|
|||
|
echo "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ../$tar.tar.gz <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>."
|
|||
|
|
|||
|
4 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (tar.bz2)
|
|||
|
Pwd=`basename %d /`
|
|||
|
echo -n "<22><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>) [$Pwd]: "
|
|||
|
read tar
|
|||
|
if [ "$tar"x = x ]; then tar="$Pwd"; fi
|
|||
|
cd .. && \
|
|||
|
tar cf - "$Pwd" | bzip2 -f > "$tar.tar.bz2" && \
|
|||
|
echo "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ../$tar.tar.bz2 <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>."
|
|||
|
|
|||
|
= f \.c$ & t r
|
|||
|
+ f \.c$ & t r & ! t t
|
|||
|
5 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> `.c'
|
|||
|
make `basename %f .c` 2>/dev/null || cc -O -o `basename %f .c` %f
|
|||
|
|
|||
|
+ t r & ! t t
|
|||
|
a <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
|||
|
cat %f >>%D/%f
|
|||
|
|
|||
|
+ t t
|
|||
|
A <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
|||
|
set %t
|
|||
|
while [ -n "$1" ]; do
|
|||
|
cat $1 >>%D/$1
|
|||
|
shift
|
|||
|
done
|
|||
|
|
|||
|
+ t r & ! t t
|
|||
|
d <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>.
|
|||
|
if [ "%d" = "%D" ]; then
|
|||
|
echo "<22><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|||
|
exit 1
|
|||
|
fi
|
|||
|
if [ -f %D/%f ]; then # if two of them, then
|
|||
|
if cmp -s %D/%f %f; then
|
|||
|
rm %f && echo %f: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
else
|
|||
|
echo "%f <20> %D/%f <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|||
|
echo -n "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> `RETURN' "
|
|||
|
read <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
fi
|
|||
|
else
|
|||
|
echo %f: <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> %D/%f: <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
fi
|
|||
|
|
|||
|
+ t t
|
|||
|
D <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>.
|
|||
|
if [ "%d" = "%D" ]; then
|
|||
|
echo "<22><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|||
|
exit 1
|
|||
|
fi
|
|||
|
for i in %t
|
|||
|
do
|
|||
|
if [ -f %D/$i ]; then
|
|||
|
SUM1="`sum $i`"
|
|||
|
SUM2="`sum %D/$i`"
|
|||
|
if [ "$SUM1" = "$SUM2" ]; then
|
|||
|
rm $i && echo ${i}: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
else
|
|||
|
echo $i <20> %D/$i <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
fi
|
|||
|
else
|
|||
|
echo %f <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> %D/%f: <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
fi
|
|||
|
done
|
|||
|
|
|||
|
m <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
MAN=%{<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>}
|
|||
|
%view man -P cat $MAN
|
|||
|
|
|||
|
= f \.gz$ & t r
|
|||
|
+ ! t t
|
|||
|
n <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> gzip
|
|||
|
dd if=%f bs=1 skip=12|zcat|${PAGER-more}
|
|||
|
# assuming the cunbatch header is 12 bytes long.
|
|||
|
|
|||
|
= t r &
|
|||
|
+ ! t t
|
|||
|
h <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
CHECK=`awk '{print $1 ; exit}' %f` 2>/dev/null
|
|||
|
case $CHECK in
|
|||
|
Newsgroups:|Path:)
|
|||
|
cp %f /tmp/%f.$$ && sed '/^'"$CHECK"' /,/^$/d' /tmp/%f.$$ > %f
|
|||
|
[ "$?" = "0" ] && rm /tmp/%f.$$
|
|||
|
echo %f: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
;;
|
|||
|
*)
|
|||
|
echo %f <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
;;
|
|||
|
esac
|
|||
|
|
|||
|
+ t t
|
|||
|
H <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
set %t
|
|||
|
while [ -n "$1" ]; do
|
|||
|
CHECK=`awk '{print $1 ; exit}' $1` 2>/dev/null
|
|||
|
WFILE=/tmp/${1}.$$
|
|||
|
case $CHECK in
|
|||
|
Newsgroups:|Path:)
|
|||
|
cp $1 $WFILE && sed '/^'"$CHECK"' /,/^$/d' $WFILE > $1
|
|||
|
if [ "$?" = "0" ]; then
|
|||
|
rm $WFILE; echo $1 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20> <20><><EFBFBD><EFBFBD>.
|
|||
|
else
|
|||
|
echo "<22><><EFBFBD><EFBFBD>! <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> $1 <20><> $WFILE"
|
|||
|
fi
|
|||
|
;;
|
|||
|
*)
|
|||
|
echo $1 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>.
|
|||
|
;;
|
|||
|
esac
|
|||
|
shift
|
|||
|
done
|
|||
|
|
|||
|
= t r
|
|||
|
+ ! t t
|
|||
|
r <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
echo -n "<22><> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?: "
|
|||
|
read <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
echo -n "<22> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> $<24><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?: "
|
|||
|
read <20><><EFBFBD>
|
|||
|
rcp -p %f ${<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>}:$<24><><EFBFBD>
|
|||
|
|
|||
|
+ t t
|
|||
|
R <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
|||
|
echo -n "<22><> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>?: "
|
|||
|
read <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
echo -n "<22> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> $<24><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>? :"
|
|||
|
read <20><><EFBFBD>
|
|||
|
rcp -pr %u ${<7B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>}:$<24><><EFBFBD>
|
|||
|
|
|||
|
= f \.tex$ & t r
|
|||
|
+ f \.tex$ & t r & ! t t
|
|||
|
t <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> `xdvi'
|
|||
|
latex %f && xdvi `basename %f .tex`.dvi
|
|||
|
|
|||
|
=+ f ^part | f ^Part | f uue & t r
|
|||
|
+ t t
|
|||
|
U <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
|||
|
set %t
|
|||
|
(
|
|||
|
while [ -n "$1" ]; do # strip headers
|
|||
|
FIRST=`awk '{print $1 ; exit}' $1`
|
|||
|
cat $1 | sed '/^'"$FIRST"' /,/^$/d'; shift
|
|||
|
done
|
|||
|
) |sed '/^$/d' |sed -n '/^begin 6/,/^end$/p' | uudecode
|
|||
|
if [ "$?" != "0" ]; then
|
|||
|
echo "<22><> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> %t"
|
|||
|
fi
|
|||
|
echo "<22><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
|||
|
|
|||
|
=+ f \.tar\.gz$ | f \.tar\.z$ | f \.tgz$ | f \.tpz$ | f \.tar\.Z$| f \.tar\.bz2$ & t r
|
|||
|
x <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> `tar'
|
|||
|
unset EXT
|
|||
|
case %f in
|
|||
|
*.tar.bz2) EXT=tar_bz2;;
|
|||
|
esac
|
|||
|
if [ "$EXT" = "tar_bz2" ]; then
|
|||
|
bunzip2 -c %f | tar xvf -
|
|||
|
else
|
|||
|
gzip -dc %f | tar xvf -
|
|||
|
fi
|
|||
|
|
|||
|
= t r
|
|||
|
+ ! t t
|
|||
|
y <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>. <20><><EFBFBD>. <20><><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> `gzip' <20><><EFBFBD> `gunzip'
|
|||
|
unset DECOMP
|
|||
|
case %f in
|
|||
|
*.gz) DECOMP=-d;;
|
|||
|
*.[zZ]) DECOMP=-d;;
|
|||
|
esac
|
|||
|
gzip $DECOMP -v %f
|
|||
|
|
|||
|
+ t t
|
|||
|
Y <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> `gzip' <20><><EFBFBD> `gunzip'
|
|||
|
for i in %t
|
|||
|
do
|
|||
|
unset DECOMP
|
|||
|
case $i in
|
|||
|
*.gz) DECOMP=-d;;
|
|||
|
*.[zZ]) DECOMP=-d;;
|
|||
|
esac
|
|||
|
gzip $DECOMP -v $i
|
|||
|
done
|
|||
|
|
|||
|
+ ! t t
|
|||
|
b <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>. <20><><EFBFBD>. <20><><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> `bzip2' <20><><EFBFBD> `bunzip2'
|
|||
|
unset DECOMP
|
|||
|
case %f in
|
|||
|
*.bz2) DECOMP=-d;;
|
|||
|
esac
|
|||
|
bzip2 $DECOMP -v %f
|
|||
|
|
|||
|
+ t t
|
|||
|
B <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> `bzip2' <20><><EFBFBD> `bunzip2'
|
|||
|
for i in %t
|
|||
|
do
|
|||
|
unset DECOMP
|
|||
|
case $i in
|
|||
|
*.bz2) DECOMP=-d;;
|
|||
|
esac
|
|||
|
bzip2 $DECOMP -v $i
|
|||
|
done
|
|||
|
|
|||
|
+ f \.tar.gz$ | f \.tgz$ | f \.tpz$ | f \.tar.Z$ | f \.tar.z$ | f \.tar.bz2$ | f \.tar.F$ & t r & ! t t
|
|||
|
z <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> `tar' <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
unset D
|
|||
|
set gzip -cd
|
|||
|
case %f in
|
|||
|
*.tar.gz) D="`basename %f .tar.gz`";;
|
|||
|
*.tgz) D="`basename %f .tgz`";;
|
|||
|
*.tpz) D="`basename %f .tpz`";;
|
|||
|
*.tar.Z) D="`basename %f .tar.Z`";;
|
|||
|
*.tar.z) D="`basename %f .tar.z`";;
|
|||
|
*.tar.bz2) D="`basename %f .tar.bz2`"; set bunzip2 -c ;;
|
|||
|
*.tar.F) D="`basename %f .tar.F`"; set freeze -dc;
|
|||
|
esac
|
|||
|
mkdir $D; cd $D && ($1 $2 ../%f | tar xvf -)
|
|||
|
|
|||
|
+ t t
|
|||
|
Z <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> `tar' <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
for i in %t
|
|||
|
do
|
|||
|
set gzip -dc
|
|||
|
unset D
|
|||
|
case $i in
|
|||
|
*.tar.gz) D="`basename $i .tar.gz`";;
|
|||
|
*.tgz) D="`basename $i .tgz`";;
|
|||
|
*.tpz) D="`basename $i .tpz`";;
|
|||
|
*.tar.Z) D="`basename $i .tar.Z`";;
|
|||
|
*.tar.z) D="`basename $i .tar.z`";;
|
|||
|
*.tar.F) D="`basename $i .tar.F`"; set freeze -dc;;
|
|||
|
*.tar.bz2) D="`basename $i .tar.bz2`"; set bunzip2 -c;;
|
|||
|
esac
|
|||
|
mkdir $D; (cd $D && $1 $2 ../$i | tar xvf -)
|
|||
|
done
|
|||
|
|
|||
|
+ f \.gz$ | f \.tgz$ | f \.tpz$ | f \.Z$ | f \.z$ | f \.bz2$ & t r & ! t t
|
|||
|
c <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> gz<->bz2, tar.gz<->tar.bz2 <20> tgz->tar.bz2
|
|||
|
unset D
|
|||
|
case %f in
|
|||
|
*.tgz) EXT=tgz;;
|
|||
|
*.tpz) EXT=tpz;;
|
|||
|
*.Z) EXT=Z;;
|
|||
|
*.z) EXT=z;;
|
|||
|
*.gz) EXT=gz;;
|
|||
|
*.bz2) EXT=bz2;;
|
|||
|
esac
|
|||
|
case $EXT in
|
|||
|
tgz|tpz) D="`basename %f .$EXT`.tar";;
|
|||
|
gz|Z|z) D="`basename %f .$EXT`";;
|
|||
|
bz2) D="`basename %f .bz2`";;
|
|||
|
esac
|
|||
|
if [ "$EXT" = "bz2" ]; then
|
|||
|
bunzip2 -v %f ; gzip -f9 -v $D
|
|||
|
else
|
|||
|
gunzip -v %f ; bzip2 -v $D
|
|||
|
fi
|
|||
|
|
|||
|
+ t t
|
|||
|
C <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> gz<->bz2, tar.gz<->tar.bz2 <20> tgz->tar.bz2
|
|||
|
set %t
|
|||
|
while [ -n "$1" ]
|
|||
|
do
|
|||
|
unset D
|
|||
|
case $1 in
|
|||
|
*.tgz) EXT=tgz;;
|
|||
|
*.tpz) EXT=tpz;;
|
|||
|
*.Z) EXT=Z;;
|
|||
|
*.z) EXT=z;;
|
|||
|
*.gz) EXT=gz;;
|
|||
|
*.bz2) EXT=bz2;;
|
|||
|
esac
|
|||
|
case $EXT in
|
|||
|
tgz) D="`basename $1 .tgz`.tar";;
|
|||
|
tpz) D="`basename $1 .tpz`.tar";;
|
|||
|
gz|Z|z) D="`basename $1 .$EXT`";;
|
|||
|
bz2) D="`basename $1 .bz2`";;
|
|||
|
esac
|
|||
|
if [ "$EXT" = "bz2" ]; then
|
|||
|
bunzip2 -v $1
|
|||
|
gzip -f9 -v $D
|
|||
|
else
|
|||
|
gunzip -v $1
|
|||
|
bzip2 -v $D
|
|||
|
fi
|
|||
|
shift
|
|||
|
done
|
|||
|
|
|||
|
+ x /usr/bin/open | x /usr/local/bin/open & x /bin/sh
|
|||
|
o <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
open -s -- sh
|
|||
|
|