ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] [JT] rebuild script
@ 2009-06-06 12:00 Michael Shigorin
  0 siblings, 0 replies; only message in thread
From: Michael Shigorin @ 2009-06-06 12:00 UTC (permalink / raw)
  To: sisyphus

[-- Attachment #1: Type: text/plain, Size: 290 bytes --]

	Здравствуйте.
Подумал, вдруг кому ещё пригодится -- в прошлом году сделал,
а собирался уже ооочень давно.  А то так вообще про rpmbuild
позабывают, пока доберусь хоть как-то опубликовать. :)

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/

[-- Attachment #2: rebuild --]
[-- Type: text/plain, Size: 629 bytes --]

#!/bin/sh
# build spec or src.rpm with hasher

hsh_build()
{
	nice time hsh $HSHARGS \
		--apt-conf="${APTCONF:=/etc/apt/apt.conf}" \
		--mountpoints=/proc \
		"${WORKDIR:=$HOME/hasher/tmpfs}" \
		"$@" \
	&& echo rpm --resign $@ \
	&& echo rsync -Pav $@ incoming:/incoming/Sisyphus/
}

rpmbs()
{
	rpm -bs --nodeps "$1" \
	| sed -ns 's/^.*: \(.*\.src\.rpm\)$/\1/p'
}

fatal()
{
	echo "$0: error: $*" >&2
	exit 1
}

while [ $# -gt 0 ]; do
	case "$1" in
		*.spec) hsh_build `rpmbs "$1"`; shift;;
		*.src.rpm) hsh_build "$1"; shift;;
		*) fatal "$1 is neither src.rpm nor spec file";;
	esac
done

#find "$WORKDIR/repo" -name '*.rpm'

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-06 12:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-06 12:00 [sisyphus] [JT] rebuild script Michael Shigorin

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