Mailinglist Archive: opensuse-bugs (13042 mails)

< Previous Next >
[Bug 465113] kernel/scripts: various
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 21 Jan 2009 09:23:55 -0700 (MST)
  • Message-id: <20090121162355.3821DCC7CD@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=465113

User jengelh@xxxxxxxxxx added comment
https://bugzilla.novell.com/show_bug.cgi?id=465113#c9





--- Comment #9 from Jan Engelhardt <jengelh@xxxxxxxxxx> 2009-01-21 09:23:53
MST ---
Upstream is to decide what goes into a SUBLEVEL or not. Though it never
happened, I think, in my humble opinion, that it is most wise and foresighted
to split, or substitute, on non-words rather than only-dots.

$ echo '2.6.29a.15-rc1' | perl -lpe 's/^(\w+)\W+(\w+)\W+(\w+)(.*)/$1 $2 $3 $4/'
2 6 29a .15-rc1
$ echo '2.6.29-rc1' | perl -lpe 's/^(\w+)\W+(\w+)\W+(\w+)(.*)/$1 $2 $3 $4/'
2 6 29 -rc1

I hope this regex now does the job, correctly so.

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References