From: Led <led@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] дайте NMU для mc
Date: Mon, 16 Oct 2006 18:25:33 +0300
Message-ID: <200610161825.34016.led@altlinux.ru> (raw)
In-Reply-To: <200610161804.38880.icesik@mail.ru>
В сообщении от 16 октября 2006 18:04 Igor Zubkov написал(a):
> В сообщении от 16 октября 2006 17:38 Led написал(a):
> > Нет, не оно. Здесь есть '-9', а для bzip2 это AFAIR необязательно. А вот
> > в секциях "y" и "Y" '-9' для gzip отсуттвует...
>
> Оно?
>
> [icesik@iceberg lib]$ diff -u mc.menu.orig mc.menu
> --- mc.menu.orig 2006-10-16 17:21:36 +0300
> +++ mc.menu 2006-10-16 18:03:45 +0300
> @@ -206,7 +206,7 @@
> *.gz) DECOMP=-d;;
> *.[zZ]) DECOMP=-d;;
> esac
> - gzip $DECOMP -v %f
> + gzip -9 $DECOMP -v %f
>
> + t t
> Y Gzip or gunzip tagged files
> @@ -217,7 +217,7 @@
> *.gz) DECOMP=-d;;
> *.[zZ]) DECOMP=-d;;
> esac
> - gzip $DECOMP -v $i
> + gzip -9 $DECOMP -v $i
> done
>
> + ! t t
> [icesik@iceberg lib]$
Угу, оно:) Только мне непонятно, зачем они сделали этот "изврат" с переменной
DECOMP? Буквы экономили?:)
И ещё вот это надо бы поправить:
@@ -290,9 +290,9 @@
bz2) D="`basename %f .bz2`";;
esac
if [ "$EXT" = "bz2" ]; then
- bunzip2 -v %f ; gzip -f9 -v $D
+ bunzip2 -v %f ; gzip -f9 -v "$D"
else
- gunzip -v %f ; bzip2 -v $D
+ gunzip -v %f ; bzip2 -v "$D"
fi
+ t t
Хотя, мне кажется, что здесь лучше сделать:
gunzip -с %f | bzip2 > "$D"
bunzip2 -с %f | gzip -9 > "$D"
Но может я и ошибаюсь...
--
Led.
next prev parent reply other threads:[~2006-10-16 15:25 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-16 14:02 Igor Zubkov
2006-10-16 14:15 ` Led
2006-10-16 14:17 ` Igor Zubkov
2006-10-16 14:27 ` Led
2006-10-16 14:27 ` Igor Zubkov
2006-10-16 14:38 ` Led
2006-10-16 15:04 ` Igor Zubkov
2006-10-16 15:25 ` Led [this message]
2006-10-16 14:41 ` Sergey Vlasov
2006-10-16 18:15 ` Sergey Pinaev
2006-10-16 21:15 ` Michael Shigorin
2006-10-17 6:30 ` Sergey Pinaev
2006-10-17 6:48 ` Michael Shigorin
2006-10-17 11:33 ` Led
2006-10-17 10:20 ` Igor Zubkov
2006-10-16 14:27 ` Victor Forsyuk
2006-10-16 14:41 ` Led
2006-10-16 15:06 ` Victor Forsyuk
2006-10-17 8:30 ` Vitaly Ostanin
2006-10-16 14:39 ` Sergey Vlasov
2006-10-16 15:49 ` Igor Zubkov
2006-10-16 15:13 ` Michael Shigorin
2006-10-20 2:53 ` Ivan Fedorov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200610161825.34016.led@altlinux.ru \
--to=led@altlinux.ru \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git