[devel] [cyber] repocop-patch +1 -32 (1525)

Michael Shigorin =?iso-8859-1?q?mike_=CE=C1_osdn=2Eorg=2Eua?=
Вс Дек 7 11:50:20 MSK 2008


On Sun, Dec 07, 2008 at 06:56:48AM +0000, repocop wrote:
> 	32 repocop-patches REMOVED from the list

Мож кому ещё пригодится велосипедик на скору руку...

rpm -i SRPMS/enca-1.9-alt3.src.rpm
cd ~/RPM/SPECS
P http://repocop.altlinux.org/pub/repocop/reports/diff/by-acl/mike/enca-1.9-alt3.diff

-- 
 ---- WBR, Michael Shigorin <mike на altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/
----------- следующая часть -----------
#!/bin/sh
[ -n "$1" ] && wget -O - "$1" | patch -p1
----------- следующая часть -----------
#!/bin/sh
# build spec or src.rpm with hasher

hsh_build()
{
	nice time hsh $HSHARGS \
		--apt-conf="${APTCONF:=/etc/apt/apt.conf}" \
		"${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'


Подробная информация о списке рассылки Devel