ALT Linux kernel packages development
 help / color / mirror / Atom feed
* [d-kernel] script that upgrades module specs
@ 2003-07-31 13:33 Peter Novodvorsky
  2003-07-31 12:44 ` Ed V. Bartosh
  2003-07-31 14:05 ` Dmitry V. Levin
  0 siblings, 2 replies; 11+ messages in thread
From: Peter Novodvorsky @ 2003-07-31 13:33 UTC (permalink / raw)
  To: devel-kernel


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!


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-07-31 15:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-31 13:33 [d-kernel] script that upgrades module specs 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

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