ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] Архив ежедневных срезов Сизифа
Date: Mon, 31 Jan 2005 13:09:41 +0300
Message-ID: <20050131100941.GD26695@basalt.office.altlinux.org> (raw)
In-Reply-To: <41FE00D5.4010103@altlinux.ru>


[-- Attachment #1.1: Type: text/plain, Size: 554 bytes --]

On Mon, Jan 31, 2005 at 05:56:37PM +0800, Ivan Fedorov wrote:
> Denis Smirnov пишет:
> > On Sat, Jan 29, 2005 at 09:10:49PM +0300, Dmitry V. Levin wrote:
> > 
> >>>Гхм. Смотрю внимательно логи -- действительно пришло. Но altlinux-release
> >>>почему-то не меняется. Хм.
> > 
> > DVL> А зачем его каждый раз менять?  altlinux-release - это же ручная работа.
> > DVL> Каждый раз меняется, например, Sisyphus/i586/base/release.
> > 
> > Понял. Бум править скрипт.
> > 
> Могу выслать свой...

Я использую примерно такой скрипт.


-- 
ldv

[-- Attachment #1.2: archive_sisyphus --]
[-- Type: text/plain, Size: 1088 bytes --]

#!/bin/sh -e

PROG="${0##*/}"

Fatal()
{
        echo "${0##*/}: $*" >&2
        exit 1
}

export LC_ALL=C

sisyphus=/path/to/Sisyphus
pattern='^/path/to/archive/Sisyphus/[[:digit:]]{4}/[[:digit:]]{2}/[[:digit:]]{2}$'
format='/path/to/archive/Sisyphus/%CY/%Cm/%Cd\n/path/to/archive/Sisyphus/%TY/%Tm/%Td\n'

old="$(find /path/to/archive/Sisyphus/ -type d -mindepth 3 -maxdepth 3 |egrep "$pattern" |sort -r |head -1)" ||
	Fatal "old sisyphus lookup failed."
[ -n "$old" -a -d "$old" ] ||
	Fatal "old sisyphus lookup failed."

new="$(find "$sisyphus"/i?86/base -mindepth 1 -maxdepth 1 -type f -name pkglist.\* -printf "$format")" ||
	Fatal "new sisyphus lookup failed."
new="$(echo "$new" |egrep "$pattern" |sort -r |head -1)"
[ -n "$new" ] ||
	Fatal "new sisyphus lookup failed."

if [ "$old" = "$new" ]; then
	echo "$old: latest snapshot already exists."
	exit 0
fi

if [ -d "$new" ]; then
	echo "$old: NON-latest snapshot already exists."
	exit 0
fi

echo "New snapshot to be created: $new"

mkdir -pv ${new%/*}
cp -al "$old" "$new"

rsync -va --delete-after --stats "$sisyphus"/ "$new"/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-01-31 10:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-29 16:06 Денис Смирнов
2005-01-29 16:43 ` Sergey S. Skulachenko
2005-01-29 16:47   ` Denis Smirnov
2005-01-29 18:10     ` Dmitry V. Levin
2005-01-30 13:03       ` [sisyphus] " Michael Shigorin
2005-01-30 14:56         ` Denis Smirnov
2005-01-30 14:53       ` [sisyphus] " Denis Smirnov
2005-01-31  9:56         ` Ivan Fedorov
2005-01-31 10:09           ` Dmitry V. Levin [this message]
2005-01-31 10:29             ` Ivan Fedorov
2005-01-31 10:44               ` [sisyphus] " Michael Shigorin
2005-01-31 12:28               ` [sisyphus] " Dmitry V. Levin

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=20050131100941.GD26695@basalt.office.altlinux.org \
    --to=ldv@altlinux.org \
    --cc=sisyphus@altlinux.ru \
    /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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git