* Re: [devel] [git update] packages/gear: heads/master
@ 2007-07-16 11:36 ` Dmitry V. Levin
2007-07-16 12:16 ` Alexey Gladkov
0 siblings, 1 reply; 2+ messages in thread
From: Dmitry V. Levin @ 2007-07-16 11:36 UTC (permalink / raw)
To: ALT Devel discussion list
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [devel] [git update] packages/gear: heads/master
2007-07-16 11:36 ` [devel] [git update] packages/gear: heads/master Dmitry V. Levin
@ 2007-07-16 12:16 ` Alexey Gladkov
0 siblings, 0 replies; 2+ messages in thread
From: Alexey Gladkov @ 2007-07-16 12:16 UTC (permalink / raw)
To: ALT Devel discussion list
Dmitry V. Levin пишет:
> "cp -t" и "mv -t" появились в coreutils-5.3.0; я бы хотел сохранить gear
> переносимым на более старые платформы, в частности на ALM2.4.
- xargs -r0 $cmd -t "$dst_dir" --
+ xargs -r0 -i $cmd -- \{\} "$dst_dir/"
Кушайте, гости дорогие.
--
Rgrds, legion
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-16 12:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-16 11:36 ` [devel] [git update] packages/gear: heads/master Dmitry V. Levin
2007-07-16 12:16 ` Alexey Gladkov
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