ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Денис Смирнов" <mithraen@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] [git update] packages/perl-mozldap: heads/master
Date: Mon, 9 Jul 2007 11:02:55 +0400
Message-ID: <20070709070255.GA3027@mw.local.seiros.ru> (raw)
In-Reply-To: <75e139a00707082320u5e94af02t65a7983accdcfa68@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 863 bytes --]

On Mon, Jul 09, 2007 at 01:20:34PM +0700, Slava Semushin wrote:

>> +rm -f `find %buildroot -type f -name perllocal.pod -o -name .packlist`
>> +find %buildroot -name API.bs -a -size 0 -exec rm -f {} \;
SS> Как-то нелогично. Почему бы и в первом случае не использовать find +
SS> exec? Или даже в обоиз случаях find -delete

Первая команда это не просто ужас, это ужас-ужас.
exec здесь абсолютно не к месту. Если удалять, то действительно find
-delete.

А в других случаях стоит обратить внимание на find -print0 | xargs -0r
<commandname>.

Так как xargs может получать сразу множество имен файлов в качестве
параметров, не будет fork/exec на _каждый_ файл.

-- 
С уважением, Денис

http://freesource.info
----------------------------------------------------------------------------
И Бейсик - сын ошибок трудных, и Клиппер Парадоксов друг.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2007-07-09  7:02 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-09  6:20 ` Slava Semushin
2007-07-09  6:28   ` Vitaly Kuznetsov
2007-07-09  6:31     ` Slava Semushin
2007-07-09  7:02   ` Денис Смирнов [this message]
2007-07-09  8:40     ` [devel] rm `find` (was: [git update] packages/perl-mozldap: heads/master) Michael Shigorin
2007-07-09  9:45   ` [devel] [git update] packages/perl-mozldap: heads/master Dmitry V. Levin
2007-07-09 10:01     ` Slava Semushin
2007-07-09 16:15       ` Anton Farygin
2007-07-09 21:42         ` Dmitry V. Levin
2007-07-10  4:57           ` Anton Farygin
2007-07-10  5:01             ` Slava Semushin
2007-07-09 11:51     ` [devel] [wiki] devel/TypicalPackagingErrors/FindRm Michael Shigorin
2007-07-09 16:13     ` [devel] [git update] packages/perl-mozldap: heads/master Anton Farygin
2007-07-09 22:01       ` [devel] find Security Considerations Dmitry V. Levin

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=20070709070255.GA3027@mw.local.seiros.ru \
    --to=mithraen@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