ALT Linux kernel packages development
 help / color / mirror / Atom feed
From: Peter Novodvorsky <nidd@myxomop.com>
To: devel-kernel@altlinux.ru
Subject: [d-kernel] script that upgrades module specs
Date: Thu, 31 Jul 2003 17:33:33 +0400
Message-ID: <87n0euzuqa.fsf@velvet.po.cs.msu.su> (raw)


Greetings!

Я написал подобие скрипта о котором недавно шла речь. Он обновляет
krelease и kversion в спеках модулей и добавляет соответствующую
запись в changelog.

------- 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 --------


-- 
Peter Novodvorsky                             nidd@myxomop.com
   http://people.altlinux.ru/~nidd   Deadheads, unite!


             reply	other threads:[~2003-07-31 13:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-31 13:33 Peter Novodvorsky [this message]
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

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=87n0euzuqa.fsf@velvet.po.cs.msu.su \
    --to=nidd@myxomop.com \
    --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