From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 16 Jul 2007 15:36:09 +0400 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20070716113609.GC28409@basalt.office.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20070709094039.6D15619FC01E@ssh.git.local.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NKoe5XOeduwbEQHU" Content-Disposition: inline In-Reply-To: <20070709094039.6D15619FC01E@ssh.git.local.altlinux.org> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E Subject: Re: [devel] [git update] packages/gear: heads/master X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2007 11:36:09 -0000 Archived-At: List-Archive: List-Post: --NKoe5XOeduwbEQHU Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 > Date: Mon Jul 9 12:12:36 2007 +0400 >=20 > gear-update: Allow update top directory > =20 > Signed-off-by: Alexey Gladkov >=20 > 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=3D"$1"; shift > + local src_dir=3D"$1"; shift > + local dst_dir=3D"$1"; shift > + local cmd=3D > + case "$command" in > + copy) cmd=3D"cp -a" ;; > + move) cmd=3D"mv" ;; > + esac > + [ -n "$cmd" ] || > + fatal "update_destdir: invalid command: $command" > + > + find "$src_dir" -mindepth 1 -maxdepth 1 \! \( -name '.git' -o -name '.g= ear-rules' \) -print0 | > + xargs -r0 $cmd -t "$dst_dir" -- > +} "cp -t" =C9 "mv -t" =D0=CF=D1=D7=C9=CC=C9=D3=D8 =D7 coreutils-5.3.0; =D1 = =C2=D9 =C8=CF=D4=C5=CC =D3=CF=C8=D2=C1=CE=C9=D4=D8 gear =D0=C5=D2=C5=CE=CF=D3=C9=CD=D9=CD =CE=C1 =C2=CF=CC=C5=C5 =D3=D4=C1=D2=D9=C5= =D0=CC=C1=D4=C6=CF=D2=CD=D9, =D7 =DE=C1=D3=D4=CE=CF=D3=D4=C9 =CE=C1 ALM2.4. --=20 ldv --NKoe5XOeduwbEQHU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFGm1gpfKvmrJ41Nh4RAuaqAJ9/wnfkwuuigWPtkDqtDtFqCccoZwCgkpx5 MKAUa0WoLDCuUlbzJZn374A= =X9Mb -----END PGP SIGNATURE----- --NKoe5XOeduwbEQHU--