From: "Dmitry V. Levin" <ldv@altlinux.org> To: ALT Devel discussion list <devel@lists.altlinux.org> Subject: Re: [devel] [git update] packages/gear: heads/master Date: Mon, 16 Jul 2007 15:36:09 +0400 Message-ID: <20070716113609.GC28409@basalt.office.altlinux.org> (raw) In-Reply-To: <20070709094039.6D15619FC01E@ssh.git.local.altlinux.org> [-- Attachment #1: Type: text/plain, Size: 1237 bytes --] On Mon, Jul 09, 2007 at 01:40:39PM +0400, Alexey Gladkov wrote: > Update of /people/legion/packages/gear.git [...] > commit 454a55bef3078a34544a14bad56912ad28d8a175 > Author: Alexey Gladkov <legion@altlinux> > Date: Mon Jul 9 12:12:36 2007 +0400 > > gear-update: Allow update top directory > > Signed-off-by: Alexey Gladkov <legion@altlinux> > > Full diff since `1.0.2-alt1-148-g84051cf' follows: > diff --git a/gear-update b/gear-update > index 47f289c..7972314 100755 > --- a/gear-update > +++ b/gear-update [...] > +update_destdir() > +{ > + [ "$#" -eq 3 ] || > + fatal "update_destdir: invalid ($#) number of arguments" > + local command="$1"; shift > + local src_dir="$1"; shift > + local dst_dir="$1"; shift > + local cmd= > + case "$command" in > + copy) cmd="cp -a" ;; > + move) cmd="mv" ;; > + esac > + [ -n "$cmd" ] || > + fatal "update_destdir: invalid command: $command" > + > + find "$src_dir" -mindepth 1 -maxdepth 1 \! \( -name '.git' -o -name '.gear-rules' \) -print0 | > + xargs -r0 $cmd -t "$dst_dir" -- > +} "cp -t" и "mv -t" появились в coreutils-5.3.0; я бы хотел сохранить gear переносимым на более старые платформы, в частности на ALM2.4. -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next parent reply other threads:[~2007-07-16 11:36 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-07-16 11:36 ` Dmitry V. Levin [this message] 2007-07-16 12:16 ` Alexey Gladkov
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=20070716113609.GC28409@basalt.office.altlinux.org \ --to=ldv@altlinux.org \ --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