From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 31 Jul 2003 18:05:30 +0400 From: "Dmitry V. Levin" To: devel-kernel@altlinux.ru Subject: Re: [d-kernel] script that upgrades module specs Message-ID: <20030731140530.GA17944@basalt.office.altlinux.org> Mail-Followup-To: devel-kernel@altlinux.ru References: <87n0euzuqa.fsf@velvet.po.cs.msu.su> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TB36FDmn/VVEgNH/" Content-Disposition: inline In-Reply-To: <87n0euzuqa.fsf@velvet.po.cs.msu.su> X-fingerprint: 9658 398D 181B 1200 8FC5 26B8 F6F8 846B C1E2 3429 X-BeenThere: devel-kernel@altlinux.ru X-Mailman-Version: 2.1.2 Precedence: list Reply-To: ALT Linux kernel packages development List-Id: ALT Linux kernel packages development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2003 14:05:31 -0000 Archived-At: List-Archive: List-Post: --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Thu, Jul 31, 2003 at 05:33:33PM +0400, Peter Novodvorsky wrote: > Я написал подобие скрипта о котором недавно шла речь. Он обновляет > krelease и kversion в спеках модулей и добавляет соответствующую > запись в changelog. как минимум, замени sed && rm на subst > ------- CUT HERE -------- > # upgrade all specs > > if [ $# -lt 3 ]; then > echo "Usage: $0 NEW_KERNEL_VERSION NEW_KERNEL_RELEASE " > fi > > kernel_version=$1 > shift > kernel_release=$1 > shift > spec_list=$@ > > for i in $spec_list; do > sed -e "s/kversion .*/kversion $kernel_version/" -e "s/krelease .*/krelease $kernel_release/" < $i > $i.new > new_release=$(expr `grep '%define.*module_release' $i | sed -e 's/.*alt\([[:digit:]]*\)/\1/'` + 1) > sed -e "s/module_release .*/module_release alt$new_release/" < $i.new > $i > rm -f $i.new > add_changelog -e "- rebuilt with $kernel_version-$kernel_release" $i > done > ------- CUT HERE -------- -- ldv --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/KSIq9viEa8HiNCkRAr38AKCCae0j+eHzFSkFOuMnnZXO1W3JugCffu0I 90fNfDmUUbXFPnrdqktAzFA= =Qog8 -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/--