From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 19 Nov 2003 19:46:45 +0200 From: Michael Shigorin To: devel@altlinux.ru Message-ID: <20031119174645.GI14907@osdn.org.ua> Mail-Followup-To: devel@altlinux.ru References: <20031119152317.GR1860@julia.office.altlinux.ru> <20031119163645.GA14907@osdn.org.ua> <20031119165603.GD23078@master.mivlgu.local> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d9ADC0YsG2v16Js0" Content-Disposition: inline In-Reply-To: <20031119165603.GD23078@master.mivlgu.local> User-Agent: Mutt/1.4.1i Subject: [devel] Re: sisyphus-daily? X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.3 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2003 17:46:48 -0000 Archived-At: List-Archive: List-Post: --d9ADC0YsG2v16Js0 Content-Type: multipart/mixed; boundary="96YOpH+ONegL0A3E" Content-Disposition: inline Content-Transfer-Encoding: 8bit --96YOpH+ONegL0A3E Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Wed, Nov 19, 2003 at 07:56:03PM +0300, Sergey Vlasov wrote: > Сюда надо бы засадить переименование в > "`rpmquery --qf='%{NAME}' -p "$srpm"`.spec". Заодно вылезло, что в synaptic-0.45-alt1.src.rpm спек именуется просто synaptic (вынуто из sandman?). -- ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/ --96YOpH+ONegL0A3E Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rpm2specs.sh" #!/bin/sh TEMPSPECDIR="/www/altlinux.org.ua/html/devel/RPM/SPECS/.tmp" SRPMPREFIX="/var/ftp/pub/Linux/ALT/Sisyphus/SRPMS." SPECPREFIX="/www/altlinux.org.ua/html/devel/RPM/SPECS/" #REPOS="base castle contrib junior kernel master non-free" #REPOS="base" REPOS="classic" rm -rf "$TEMPSPECDIR" rm -rf "$SPECPREFIX" mkdir -p "$TEMPSPECDIR" cd "$TEMPSPECDIR" for repo in $REPOS; do mkdir -p "$SPECPREFIX$repo" for srpm in $SRPMPREFIX$repo/*.src.rpm; do rpm2cpio "$srpm" | cpio --quiet --extract *.spec spec="`rpmquery --qf='%{NAME}' -p "$srpm"`.spec" mv -f *.spec "$SPECPREFIX$repo/$spec" || echo "$srpm" done done --96YOpH+ONegL0A3E-- --d9ADC0YsG2v16Js0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/u6yFbsPDprYMm3IRAhCPAJ0dYmFyhjtQgz2Hm4MbZlTjUZxHjQCePoJy r1eUjYK3RJXRNN13S9eO9zQ= =OmFV -----END PGP SIGNATURE----- --d9ADC0YsG2v16Js0--