From: "Dmitry V. Levin" <ldv@altlinux.org> To: devel-kernel@altlinux.ru Subject: Re: [d-kernel] script that upgrades module specs Date: Thu, 31 Jul 2003 18:05:30 +0400 Message-ID: <20030731140530.GA17944@basalt.office.altlinux.org> (raw) In-Reply-To: <87n0euzuqa.fsf@velvet.po.cs.msu.su> [-- Attachment #1: Type: text/plain, Size: 947 bytes --] 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 <spec_files>" > 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 [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2003-07-31 14:05 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-07-31 13:33 Peter Novodvorsky 2003-07-31 12:44 ` Ed V. Bartosh 2003-07-31 13:48 ` Peter Novodvorsky 2003-07-31 13:04 ` Ed V. Bartosh 2003-07-31 14:13 ` Anton Farygin 2003-07-31 13:23 ` Ed V. Bartosh 2003-07-31 14:07 ` Anton Farygin 2003-07-31 13:18 ` Ed V. Bartosh 2003-07-31 15:15 ` [JT!] " Michael Shigorin 2003-07-31 15:37 ` Anton Farygin 2003-07-31 14:05 ` Dmitry V. Levin [this message]
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=20030731140530.GA17944@basalt.office.altlinux.org \ --to=ldv@altlinux.org \ --cc=devel-kernel@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 kernel packages development This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/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 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \ devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com public-inbox-index devel-kernel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git