ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] hsh-remote
@ 2024-02-13 10:56 Paul Wolneykien
  2024-02-13 12:15 ` Denis Medvedev
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Wolneykien @ 2024-02-13 10:56 UTC (permalink / raw)
  To: ALT Linux Team development discussions


  Всем привет. Набросал тут для себя короткую утилитку для запуска
сборки на удалённой машине прямо из gear:

    gear --hasher -- hsh-remote <host> ...

  Вопрос, стоит ли доводить до ума? Или может быть уже есть такое, а я
не знаю? :)

#!/bin/sh -efu

workdir="$TMPDIR/hasher"

HOST="$1"; shift
PKGFILE="${@:$#}"
rsync -v "$PKGFILE" "$HOST":"$workdir/hsh-remote.pkg"
set -- "${@:1:$(($#-1))}"
ssh "$HOST" -- "$@" "$workdir/hsh-remote.pkg"
mkdir -p "$workdir/repo"
rsync -av "$HOST":"$workdir/repo/" "$workdir/repo/"


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [devel] hsh-remote
  2024-02-13 10:56 [devel] hsh-remote Paul Wolneykien
@ 2024-02-13 12:15 ` Denis Medvedev
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Medvedev @ 2024-02-13 12:15 UTC (permalink / raw)
  To: Paul Wolneykien; +Cc: ALT Linux Team development discussions

On Tue, 13 Feb 2024 13:56:46 +0300
Paul Wolneykien <manowar@altlinux.org> wrote:

> 
>   Всем привет. Набросал тут для себя короткую утилитку для запуска
> сборки на удалённой машине прямо из gear:
> 
>     gear --hasher -- hsh-remote <host> ...
gear-remote-hsh же. Уже есть. Прямо в пакете gear

> 
>   Вопрос, стоит ли доводить до ума? Или может быть уже есть такое, а я
> не знаю? :)
> 
> #!/bin/sh -efu
> 
> workdir="$TMPDIR/hasher"
> 
> HOST="$1"; shift
> PKGFILE="${@:$#}"
> rsync -v "$PKGFILE" "$HOST":"$workdir/hsh-remote.pkg"
> set -- "${@:1:$(($#-1))}"
> ssh "$HOST" -- "$@" "$workdir/hsh-remote.pkg"
> mkdir -p "$workdir/repo"
> rsync -av "$HOST":"$workdir/repo/" "$workdir/repo/"
> _______________________________________________
> Devel mailing list
> Devel@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-13 12:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-13 10:56 [devel] hsh-remote Paul Wolneykien
2024-02-13 12:15 ` Denis Medvedev

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