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 > > gear-update: Allow update top directory > > Signed-off-by: Alexey Gladkov > > 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